Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Nov 14, 2023
1 parent 5725272 commit e693feb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import {
JitRenderDelegate,
RenderTest,
suite,
test, tracked,
test,
tracked,
} from '..';

interface CapturedBounds {
Expand Down
2 changes: 1 addition & 1 deletion packages/@glimmer/interfaces/lib/runtime/arguments.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ export interface ArgumentError {
}


export declare function isArgumentError(arg: unknown): arg is ArgumentError
export function isArgumentError(arg: unknown): arg is ArgumentError
4 changes: 2 additions & 2 deletions packages/@glimmer/interfaces/lib/runtime/environment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { GlimmerTreeChanges, GlimmerTreeConstruction } from '../dom/changes
import type { DebugRenderTree } from './debug-render-tree';
import type { ModifierInstance } from './modifier';
import type { WithCreateInstance } from '../managers';
import type { isArgumentError } from './arguments';
//import type { isArgumentError } from './arguments';

export interface EnvironmentOptions {
document?: SimpleDocument;
Expand Down Expand Up @@ -46,5 +46,5 @@ export interface Environment {

isInteractive: boolean;
debugRenderTree?: DebugRenderTree | undefined;
isArgumentCaptureError?: typeof isArgumentError | undefined;
isArgumentCaptureError?: ((error: any) => boolean) | undefined;
}
2 changes: 1 addition & 1 deletion packages/@glimmer/runtime/lib/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class EnvironmentImpl implements Environment {
// Delegate methods and values
public isInteractive: boolean;

isArgumentCaptureError: typeof isArgumentError | undefined;
isArgumentCaptureError: ((error: any) => boolean) | undefined;
debugRenderTree: DebugRenderTree<object> | undefined;

constructor(options: EnvironmentOptions, private delegate: EnvironmentDelegate) {
Expand Down

0 comments on commit e693feb

Please sign in to comment.