Skip to content

Shouldn't the enums and interfaces be exported? #92

@GordonSmith

Description

@GordonSmith

Discussed in #91

Originally posted by Vithanco February 5, 2022
My code cannot fully use these declarations as they are not exported:

declare type Format = "svg" | "dot" | "json" | "dot_json" | "xdot_json" | "plain" | "plain-ext";
declare type Engine = "circo" | "dot" | "fdp" | "sfdp" | "neato" | "osage" | "patchwork" | "twopi";
interface Image {
    path: string;
    width: string;
    height: string;
}
interface File {
    path: string;
    data: string;
}
interface Ext {
    images?: Image[];
    files?: File[];
    wasmFolder?: string;
    wasmBinary?: Uint8Array;
    yInvert?: boolean;
    nop?: number;
}

Is that an oversight or do I not understand how to use the library? Background: I am creating a wrapper for your Wasm that will fit my needs (based on JSON output) and I realised that I cannot create a wrapper with the same types as these types aren't exported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions