Skip to content

Commit

Permalink
clean module entry point
Browse files Browse the repository at this point in the history
Signed-off-by: david <[email protected]>
  • Loading branch information
lemarier committed May 3, 2023
1 parent 568e8c0 commit 0469634
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions sdk/mod.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
/// <reference types="./mashin.d.ts" />

import { StateRecord } from "./mashin.d.ts";

export class Mashin {}
export { Resource, Provider } from "./resource.ts";
export type { ResourceName, ResourceOptions } from "./resource.ts";
export type { Inputs, Outputs } from "./output.ts";
export { getFileName } from "./download.ts";

export abstract class Backend<T> {
abstract name: string;
abstract version: string;
config: T;
abstract save(encryptedState: StateRecord): Promise<void>;
abstract load(): Promise<StateRecord | undefined>;
abstract close(): Promise<void>;

constructor(config: T) {
this.config = config;
}
}
export abstract class Backend {}

0 comments on commit 0469634

Please sign in to comment.