-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
enhancementNew feature or requestNew feature or request
Description
hi 👋 , was wondering if there are, or you're interested in adding type declarations for typescript.
this could be created as a .d.ts
file here, or added to the https://github.com/DefinitelyTyped/DefinitelyTyped repo.
an incipient example of how this would look
declare module '@observablehq/runtime' {
export class Inspector {
constructor(element: unknown);
pending(...args: unknown[]): unknown;
rejected(...args: unknown[]): unknown;
fulfilled(...args: unknown[]): unknown;
}
export class Runtime {
constructor();
module(
notebook: unknown,
handler: (name: string) => Inspector | boolean,
): void;
dispose(): void;
}
}
GordonSmith, mbostock, caleb-vear, awhitty, himself65 and 6 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request