Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
import { WasmFs } from '@wasmer/wasmfs';

export interface IDependency {
    git?: string;
    rev?: string;
    local?: string;
}

export interface ITarget {
    pathblobPath?: string;
    hash?: string; // target blob 目标文件Hashhash
}

export interface IMovePackage {
    name?: string;
    version?: string;
    addresses?: Map<string, string>;
    dependencies?: Map<string, IDependency>;
    devDependencies?: Map<string, IDependency>;
    build(): Promise<void>;
    test(): Promise<void>;
    package(): Promise<ITarget>;
}

export declare type MoveOptions = {
    packagePath: string;
    test: boolean;
    alias?: Map<string, string>;
    initFunction?: string;
};

export declare function createMovePackage(wasmfs: WasmFs, opts: MoveOptions): IMovePackage;

...