|
| 1 | +// Variables. |
| 2 | +import { BIGINT, BIGINT_INSTANCE } from './big-int.const'; |
| 3 | +import { Class } from './class.const'; |
| 4 | +import { FALSE, TRUE, TRUE_INSTANCE, FALSE_INSTANCE } from './boolean.const'; |
| 5 | +import { NULL } from './null.const'; |
| 6 | +import { NUMBER, NUMBER_INSTANCE, NUMBER_NEW_INSTANCE } from './number.const'; |
| 7 | +import { ObjectOne, ObjectTwo } from './object.const'; |
| 8 | +import { STRING, STRING_INSTANCE, STRING_NEW_INSTANCE } from './string.const'; |
| 9 | +import { UNDEFINED } from './undefined.const'; |
| 10 | +import { notDefined } from './not-defined.const'; |
| 11 | +// Type. |
| 12 | +import { Func } from '../../../type/func.type'; |
| 13 | + |
| 14 | +// Arrays. |
| 15 | +// Array with `bigint`. |
| 16 | +export const ARRAY_BIGINT: Array<bigint> = [BIGINT, BIGINT_INSTANCE, 9007199254740991n]; |
| 17 | +// Array with `boolean`. |
| 18 | +export const ARRAY_BOOLEAN: Array<boolean | Boolean> = [true, false, TRUE_INSTANCE, FALSE_INSTANCE, false, FALSE, TRUE]; |
| 19 | +// Array with `Class` instances. |
| 20 | +export const ARRAY_CLASS: Array<Class> = [new Class(), new Class()]; |
| 21 | +// Array with `function`. |
| 22 | +export const ARRAY_FUNCTION: Array<Func> = |
| 23 | + [(x: number, y: string): any => x, (x: number, y: string): any => x, (x: number, y: string): any => x]; |
| 24 | +// Array with `null`. |
| 25 | +export const ARRAY_NULL: Array<null> = [null, null, null, NULL, NULL]; |
| 26 | +// Array with `number`. |
| 27 | +export const ARRAY_NUMBER: Array<number | Number> = [1, 2, 3, 4, 7, 10, 1000, 3000, 151233, NUMBER, NUMBER_INSTANCE, NUMBER_NEW_INSTANCE]; |
| 28 | +// Array with 'object'. |
| 29 | +export const ARRAY_OBJECT_ONE: Array<ObjectOne> = [{ [NUMBER]: 'my number', x: 3000 }, { [NUMBER]: 'my number', x: 1 }]; |
| 30 | +export const ARRAY_OBJECT_TWO: Array<ObjectTwo> = [{ x: 'One Two Three', y: 10000 }, { x: 'One Two Three', y: 10000 }, { x: 'One Two Three', y: 10000 }]; |
| 31 | +// Array with `string`. |
| 32 | +export const ARRAY_STRING: Array<string | String> = [STRING, STRING_INSTANCE, STRING_NEW_INSTANCE, '!@#$%^&*()abcdefghijklmnoprstuwyz']; |
| 33 | +// Array with `symbol`. |
| 34 | +export const ARRAY_SYMBOL_NUMBER: Array<symbol> = [Symbol(1005), Symbol(1002), Symbol(15), Symbol(1)]; |
| 35 | +export const ARRAY_SYMBOL_STRING: Array<symbol> = [Symbol('String Symbol'), Symbol('String Symbol'), Symbol('String Symbol One'), Symbol('String Symbol Two')]; |
| 36 | +// Array with `undefined`. |
| 37 | +export const ARRAY_UNDEFINED: Array<undefined> = [undefined, undefined, undefined, UNDEFINED, notDefined]; |
0 commit comments