Skip to content

Commit

Permalink
Fix verbatimModuleSyntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bendemboski committed Nov 27, 2023
1 parent 6416464 commit d548e1f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/ember-truth-helpers/and-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import AndHelper from 'ember-truth-helpers/helpers/and';

import { expectTypeOf } from 'expect-type';

import { ReturnOf } from '../util';
import type { ReturnOf } from '../util';

// string could be an empty string and get returned, otherwse we get null
declare const return1: ReturnOf<AndHelper<string, null, undefined, number | null>>;
Expand Down
2 changes: 1 addition & 1 deletion tests/ember-truth-helpers/eq-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import EqHelper from 'ember-truth-helpers/helpers/eq';

import { expectTypeOf } from 'expect-type';

import { ReturnOf } from '../util';
import type { ReturnOf } from '../util';

declare const ret: ReturnOf<EqHelper>;
expectTypeOf(ret).toBeBoolean();
2 changes: 1 addition & 1 deletion tests/ember-truth-helpers/or-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import OrHelper from 'ember-truth-helpers/helpers/or';

import { expectTypeOf } from 'expect-type';

import { ReturnOf } from '../util';
import type { ReturnOf } from '../util';

// if number is 0, we'll eventually end up on string, it may be empty but we'll get it either way
declare const return1: ReturnOf<OrHelper<number | null, undefined, null, string>>;
Expand Down
2 changes: 1 addition & 1 deletion tests/util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Helper, { ExpandSignature } from '@ember/component/helper';
import Helper, { type ExpandSignature } from '@ember/component/helper';

export type ReturnOf<T> = T extends Helper<infer S> ? ExpandSignature<S>['Return'] : never;
2 changes: 1 addition & 1 deletion utils/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { htmlSafe } from '@ember/template';
import { ExpandSignature } from '@glimmer/component/-private/component';
import type { ExpandSignature } from '@glimmer/component/-private/component';

// WARNING: This is not guaranteed to maintain argument position if more than one args name is passed!
export type SignatureWithPositionedArg<S, K extends keyof ExpandSignature<S>['Args']['Named']> = {
Expand Down

0 comments on commit d548e1f

Please sign in to comment.