Skip to content

Commit

Permalink
test-helpers: Add explicit return types
Browse files Browse the repository at this point in the history
without this our `test:types` job fails for some reason
  • Loading branch information
Turbo87 committed Dec 24, 2018
1 parent 4560212 commit e5a4b68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/@glimmer/test-helpers/lib/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class TestDynamicScope implements DynamicScope {
return this.bucket[key];
}

set(key: string, reference: PathReference<Opaque>) {
set(key: string, reference: PathReference<Opaque>): PathReference<Opaque> {
return (this.bucket[key] = reference);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default class EagerRenderDelegate implements RenderDelegate {
};
}

getSelf(context: Opaque) {
getSelf(context: Opaque): UpdatableReference<Opaque> {
return new UpdatableReference(context);
}

Expand Down
6 changes: 3 additions & 3 deletions packages/@glimmer/test-helpers/lib/render-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ export class RehydrationDelegate implements RenderDelegate {
return this.serialize(element);
}

getSelf(context: Opaque) {
getSelf(context: Opaque): UpdatableReference<Opaque> {
return new UpdatableReference(context);
}

Expand Down Expand Up @@ -993,13 +993,13 @@ export function renderTemplate(
env: LazyTestEnvironment,
self: PathReference<Opaque>,
builder: ElementBuilder
) {
): RenderResult<Opaque> {
let template = env.preprocess(src);
let iterator = env.renderMain(template, self, builder);
return renderSync(env, iterator);
}

export function renderSync(env: Environment, iterator: TemplateIterator) {
export function renderSync(env: Environment, iterator: TemplateIterator): RenderResult<Opaque> {
env.begin();

let iteratorResult: IteratorResult<RenderResult>;
Expand Down

0 comments on commit e5a4b68

Please sign in to comment.