mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
Fix array lint in htmlbars-inline-precompile.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
|
||||
const likeThisDotRender = (s: string | Array<string>) => {};
|
||||
const likeThisDotRender = (s: string | string[]) => {};
|
||||
|
||||
likeThisDotRender(hbs`this is allowed`);
|
||||
|
||||
2
types/htmlbars-inline-precompile/index.d.ts
vendored
2
types/htmlbars-inline-precompile/index.d.ts
vendored
@@ -13,4 +13,4 @@
|
||||
// [Babel plugin]: https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile#babel-plugin-htmlbars-inline-precompile-
|
||||
// [output]: https://github.com/emberjs/ember-test-helpers/blob/77f9a53da9d8c19a85b3122788caadbcc59274c2/lib/ember-test-helpers/-legacy-overrides.js#L17-L42
|
||||
|
||||
export default function hbs(tagged: TemplateStringsArray): string | Array<string>;
|
||||
export default function hbs(tagged: TemplateStringsArray): string | string[];
|
||||
|
||||
Reference in New Issue
Block a user