run fmt
This commit is contained in:
parent
b5999e8c83
commit
3a2d32712a
1 changed files with 130 additions and 139 deletions
17
d2js/js/src/index.d.ts
vendored
17
d2js/js/src/index.d.ts
vendored
|
|
@ -93,11 +93,7 @@ declare module "@terrastruct/d2" {
|
|||
readonly ready: Promise<void>;
|
||||
worker: D2Worker;
|
||||
currentResolve?: (
|
||||
result:
|
||||
| string
|
||||
| RenderResult
|
||||
| EncodedResult
|
||||
| DecodedResult,
|
||||
result: string | RenderResult | EncodedResult | DecodedResult
|
||||
) => void;
|
||||
currentReject?: (reason: Error) => void;
|
||||
|
||||
|
|
@ -120,20 +116,15 @@ declare module "@terrastruct/d2" {
|
|||
*/
|
||||
sendMessage(
|
||||
type: string,
|
||||
data: object,
|
||||
): Promise<
|
||||
CompileResult | RenderResult | EncodedResult | DecodedResult
|
||||
>;
|
||||
data: object
|
||||
): Promise<CompileResult | RenderResult | EncodedResult | DecodedResult>;
|
||||
|
||||
/**
|
||||
* Compiles the provided input.
|
||||
* @param input A string representing the source or a CompileRequest.
|
||||
* @param options Optional compilation options.
|
||||
*/
|
||||
compile(
|
||||
input: string | CompileRequest,
|
||||
options?: Options,
|
||||
): Promise<string>;
|
||||
compile(input: string | CompileRequest, options?: Options): Promise<string>;
|
||||
|
||||
/**
|
||||
* Renders the given diagram.
|
||||
|
|
|
|||
Loading…
Reference in a new issue