Skip to content

Commit

Permalink
Deploying to gh-pages from @ 40f8e82 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Dec 22, 2024
1 parent eb30875 commit 5c3e8f9
Show file tree
Hide file tree
Showing 17 changed files with 3,205 additions and 1,234 deletions.
207 changes: 145 additions & 62 deletions node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,32 +525,40 @@ declare namespace $ {
declare namespace $ {
type $mol_run_error_context = {
pid?: number;
stdout: Buffer;
stderr: Buffer;
status?: number | null;
signal: NodeJS.Signals | null;
stdout: Buffer | string;
stderr: Buffer | string;
};
class $mol_run_error extends $mol_error_mix<{
timeout?: boolean;
timeout_kill?: boolean;
pid?: number;
signal?: NodeJS.Signals | null;
status?: number | null;
command: string;
dir: string;
}> {
}
const $mol_run_spawn: typeof import("child_process").spawn;
const $mol_run_spawn_sync: typeof import("child_process").spawnSync;
const $mol_run_spawn: (command: string, args: readonly string[], options: import("child_process").SpawnOptions) => import("child_process").ChildProcess;
const $mol_run_spawn_sync: (command: string, args?: readonly string[] | undefined, options?: import("child_process").SpawnSyncOptions | undefined) => import("child_process").SpawnSyncReturns<string | Buffer<ArrayBufferLike>>;
type $mol_run_options = {
command: readonly string[] | string;
dir: string;
timeout?: number;
env?: Record<string, string | undefined>;
};
function $mol_run_async(this: $, { dir, timeout, command, env }: $mol_run_options): import("child_process").SpawnSyncReturns<Buffer<ArrayBufferLike>> | (Promise<$mol_run_error_context> & {
destructor: () => void;
});
function $mol_run(this: $, options: $mol_run_options): $mol_run_error_context | import("child_process").SpawnSyncReturns<Buffer<ArrayBufferLike>>;
class $mol_run extends $mol_object {
static async_enabled(): boolean;
static spawn(options: $mol_run_options): $mol_run_error_context | import("child_process").SpawnSyncReturns<string | Buffer<ArrayBufferLike>>;
static spawn_async({ dir, sync, timeout, command, env }: $mol_run_options & {
sync?: boolean;
}): import("child_process").SpawnSyncReturns<string | Buffer<ArrayBufferLike>> | (Promise<$mol_run_error_context> & {
destructor: () => void;
});
static error_message(res?: $mol_run_error_context): string;
}
}

declare namespace $ {
function $mol_exec(this: $, dir: string, command: string, ...args: readonly string[]): $mol_run_error_context | import("child_process").SpawnSyncReturns<Buffer<ArrayBufferLike>>;
function $mol_exec(this: $, dir: string, command: string, ...args: readonly string[]): $mol_run_error_context | import("child_process").SpawnSyncReturns<string | Buffer<ArrayBufferLike>>;
}

declare namespace $ {
Expand Down Expand Up @@ -1388,6 +1396,22 @@ declare namespace $ {
}
}

declare namespace $ {
let $mol_action: typeof $mol_wire_method;
}

declare namespace $ {
class $mol_lock extends $mol_object {
protected promise: null | Promise<void>;
wait(): Promise<() => void>;
grab(): () => void;
}
}

declare namespace $ {
function $mol_compare_array<Value extends ArrayLike<unknown>>(a: Value, b: Value): boolean;
}

declare namespace $ {
type $mol_charset_encoding = 'utf8' | 'utf-16le' | 'utf-16be' | 'ibm866' | 'iso-8859-2' | 'iso-8859-3' | 'iso-8859-4' | 'iso-8859-5' | 'iso-8859-6' | 'iso-8859-7' | 'iso-8859-8' | 'iso-8859-8i' | 'iso-8859-10' | 'iso-8859-13' | 'iso-8859-14' | 'iso-8859-15' | 'iso-8859-16' | 'koi8-r' | 'koi8-u' | 'koi8-r' | 'macintosh' | 'windows-874' | 'windows-1250' | 'windows-1251' | 'windows-1252' | 'windows-1253' | 'windows-1254' | 'windows-1255' | 'windows-1256' | 'windows-1257' | 'windows-1258' | 'x-mac-cyrillic' | 'gbk' | 'gb18030' | 'hz-gb-2312' | 'big5' | 'euc-jp' | 'iso-2022-jp' | 'shift-jis' | 'euc-kr' | 'iso-2022-kr';
}
Expand All @@ -1401,80 +1425,139 @@ declare namespace $ {
}

declare namespace $ {
type $mol_file_type = 'file' | 'dir' | 'link';
interface $mol_file_stat {
type: $mol_file_type;
size: number;
atime: Date;
mtime: Date;
ctime: Date;
type $mol_file_transaction_mode = 'create' | 'exists_truncate' | 'exists_fail' | 'read_only' | 'write_only' | 'read_write' | 'append';
type $mol_file_transaction_buffer = ArrayBufferView;
class $mol_file_transaction extends $mol_object {
path(): string;
modes(): readonly $mol_file_transaction_mode[];
write(options: {
buffer: ArrayBufferView | string | readonly ArrayBufferView[];
offset?: number | null;
length?: number | null;
position?: number | null;
}): number;
read(): Uint8Array<ArrayBuffer>;
truncate(size: number): void;
close(): void;
destructor(): void;
}
class $mol_file_not_found extends Error {
}

declare namespace $ {
class $mol_file_transaction_node extends $mol_file_transaction {
protected descr(): number;
write({ buffer, offset, length, position }: {
buffer: ArrayBufferView | string | readonly ArrayBufferView[];
offset?: number | null;
length?: number | null;
position?: number | null;
}): number;
truncate(size: number): void;
read(): Uint8Array<ArrayBuffer>;
close(): void;
}
abstract class $mol_file extends $mol_object {
static absolute(path: string): $mol_file;
static relative(path: string): $mol_file;
}

declare namespace $ {
class $mol_file_base extends $mol_object {
static absolute<This extends typeof $mol_file_base>(this: This, path: string): InstanceType<This>;
static relative<This extends typeof $mol_file_base>(this: This, path: string): InstanceType<This>;
static base: string;
path(): string;
parent(): $mol_file;
abstract stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
parent(): this;
exists_cut(): boolean;
protected root(): boolean;
protected stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
protected static changed: Set<$mol_file_base>;
protected static frame: null | $mol_after_timeout;
protected static changed_add(type: 'change' | 'rename', path: string): void;
static watch_debounce(): number;
static flush(): void;
protected static watching: boolean;
protected static lock: $mol_lock;
protected static watch_off(path: string): void;
static unwatched<Result>(side_effect: () => Result, affected_dir: string): Result;
reset(): void;
modified(): Date | null;
version(): string;
abstract ensure(): void;
abstract drop(): void;
protected info(path: string): null | $mol_file_stat;
protected ensure(): void;
protected drop(): void;
protected copy(to: string): void;
protected read(): Uint8Array<ArrayBuffer>;
protected write(buffer: Uint8Array<ArrayBuffer>): void;
protected kids(): readonly this[];
readable(opts: {
start?: number;
end?: number;
}): ReadableStream<Uint8Array<ArrayBuffer>>;
writable(opts: {
start?: number;
}): WritableStream<Uint8Array<ArrayBuffer>>;
buffer(next?: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer>;
stat_make(size: number): {
readonly type: "file";
readonly size: number;
readonly atime: Date;
readonly mtime: Date;
readonly ctime: Date;
};
clone(to: string): this | null;
watcher(): {
destructor(): void;
};
exists(next?: boolean): boolean;
type(): "" | $mol_file_type;
name(): string;
ext(): string;
abstract buffer(next?: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer>;
text(next?: string, virt?: 'virt'): string;
abstract sub(): $mol_file[];
abstract resolve(path: string): $mol_file;
abstract relate(base?: $mol_file): string;
abstract append(next: Uint8Array<ArrayBuffer> | string): void;
find(include?: RegExp, exclude?: RegExp): $mol_file[];
text_int(next?: string, virt?: 'virt'): string;
sub(reset?: null): this[];
resolve(path: string): this;
relate(base?: $mol_file_base): string;
find(include?: RegExp, exclude?: RegExp): this[];
size(): number;
open(...modes: readonly ('create' | 'exists_truncate' | 'exists_fail' | 'read_only' | 'write_only' | 'read_write' | 'append')[]): number;
toJSON(): string;
open(...modes: readonly $mol_file_transaction_mode[]): $mol_file_transaction;
}
}

declare namespace $ {
let $mol_action: typeof $mol_wire_method;
}

declare namespace $ {
function $mol_compare_array<Value extends ArrayLike<unknown>>(a: Value, b: Value): boolean;
type $mol_file_type = 'file' | 'dir' | 'link';
interface $mol_file_stat {
type: $mol_file_type;
size: number;
atime: Date;
mtime: Date;
ctime: Date;
}
class $mol_file extends $mol_file_base {
}
}

declare namespace $ {
enum $mol_file_mode_open {
create,
exists_truncate,
exists_fail,
read_only,
write_only,
read_write,
append
}
function $mol_file_node_buffer_normalize(buf: Buffer<ArrayBuffer>): Uint8Array<ArrayBuffer>;
class $mol_file_node extends $mol_file {
static absolute(path: string): $mol_file_node;
static relative(path: string): $mol_file_node;
watcher(): {
static relative<This extends typeof $mol_file>(this: This, path: string): InstanceType<This>;
watcher(reset?: null): {
destructor(): void;
};
stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
ensure(): void;
drop(): void;
buffer(next?: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer>;
sub(): $mol_file[];
resolve(path: string): $mol_file;
protected info(path: string): $mol_file_stat | null;
protected ensure(): null | undefined;
protected copy(to: string): void;
protected drop(): void;
protected read(): Uint8Array<ArrayBuffer>;
protected write(buffer: Uint8Array): undefined;
protected kids(): this[];
resolve(path: string): this;
relate(base?: $mol_file): string;
append(next: Uint8Array<ArrayBuffer> | string): undefined;
open(...modes: readonly (keyof typeof $mol_file_mode_open)[]): number;
readable(opts: {
start?: number;
end?: number;
}): ReadableStream<Uint8Array<ArrayBuffer>>;
writable(opts?: {
start?: number;
}): WritableStream<Uint8Array<ArrayBuffer>>;
}
}

Expand Down Expand Up @@ -1876,7 +1959,7 @@ declare namespace $ {
,
ReturnType< $mol_view['sub'] >
>
type _mol_page_7 = $mol_type_enforce<
type __mol_page_7 = $mol_type_enforce<
Parameters< $mol_page['body_scroll_top'] >[0]
,
Parameters< ReturnType< $mol_page['Body'] >['scroll_top'] >[0]
Expand Down Expand Up @@ -2945,14 +3028,14 @@ declare namespace $ {

declare namespace $ {

type $mol_blob_mol_button_copy_1 = $mol_type_enforce<
type $mol_blob__mol_button_copy_1 = $mol_type_enforce<
[ readonly(BlobPart)[], ({
'type': string,
}) ]
,
ConstructorParameters< typeof $mol_blob >
>
type $mol_blob_mol_button_copy_2 = $mol_type_enforce<
type $mol_blob__mol_button_copy_2 = $mol_type_enforce<
[ readonly(BlobPart)[], ({
'type': string,
}) ]
Expand Down
2 changes: 1 addition & 1 deletion node.d.ts.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node.deps.json

Large diffs are not rendered by default.

Loading

0 comments on commit 5c3e8f9

Please sign in to comment.