Skip to content
Snippets Groups Projects
Commit d1e16f58 authored by Alexander Rose's avatar Alexander Rose
Browse files

tweaks to allow building declerations

parent 4f6f7989
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
* @author David Sehnal <david.sehnal@gmail.com>
*/
class EquivalenceClassesImpl<K, V> {
export class EquivalenceClassesImpl<K, V> {
private id = 0;
private byHash = new Map<number, { id: number, keys: K[], value: V }[]>();
......
......@@ -65,7 +65,8 @@ namespace PluginBehavior {
export function simpleCommandHandler<T>(cmd: PluginCommand<T>, action: (data: T, ctx: PluginContext) => void | Promise<void>) {
return class implements PluginBehavior<{}> {
private sub: PluginCommand.Subscription | undefined = void 0;
// TODO can't be private due to bug with generating declerations, see https://github.com/Microsoft/TypeScript/issues/17293
/** private */ sub: PluginCommand.Subscription | undefined = void 0;
register(): void {
this.sub = cmd.subscribe(this.ctx, data => action(data, this.ctx));
}
......@@ -73,7 +74,8 @@ namespace PluginBehavior {
if (this.sub) this.sub.unsubscribe();
this.sub = void 0;
}
constructor(private ctx: PluginContext) { }
// TODO can't be private due to bug with generating declerations, see https://github.com/Microsoft/TypeScript/issues/17293
constructor(/** private */ public ctx: PluginContext) { }
}
}
......
......@@ -6,7 +6,7 @@
import { RuntimeContext } from './runtime-context'
class SynchronousRuntimeContext implements RuntimeContext {
export class SynchronousRuntimeContext implements RuntimeContext {
shouldUpdate = false;
isSynchronous = true;
update(progress: string | Partial<RuntimeContext.ProgressUpdate>, dontNotify?: boolean): Promise<void> | void { }
......
{
"compilerOptions": {
"composite": true,
"target": "es5",
"alwaysStrict": true,
"noImplicitAny": true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment