Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit d25f71b

Browse files
committed
Add test case
1 parent 2bd2ec1 commit d25f71b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/lib/rules/no-type-alias.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,17 @@ type Foo<T> = {
496496
};
497497
`,
498498
options: [{ allowMappedTypes: "in-intersections" }]
499+
},
500+
{
501+
code: `export type ClassValue = string | number | ClassDictionary | ClassArray | undefined | null | false;`,
502+
options: [
503+
{
504+
allowAliases: "in-unions-and-intersections",
505+
allowCallbacks: true,
506+
allowLiterals: "in-unions-and-intersections",
507+
allowMappedTypes: "in-unions-and-intersections"
508+
}
509+
]
499510
}
500511
],
501512
invalid: [

0 commit comments

Comments
 (0)