Skip to content

Instantly share code, notes, and snippets.

@buntine
Created September 4, 2016 09:15
Show Gist options
  • Save buntine/bfc5289f13da89e318a0fe8e5aaec0af to your computer and use it in GitHub Desktop.
Save buntine/bfc5289f13da89e318a0fe8e5aaec0af to your computer and use it in GitHub Desktop.
namespace Structure {
export interface Tab {
preload(callback: () => void): void;
execute(): void;
build(set: Array<Structure.Person>): boolean;
built(): boolean;
}
}
class Impact implements Structure.Tab {
constructor() {
// ...
}
public preload(callback: () => void): void {
// ...
callback();
}
public execute(): void {
// ...
}
public build(set: Array<Structure.Person>): boolean {
// ...
return true;
}
public built(): boolean {
// ...
return true;
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment