Skip to content

IArray

IArray<T>: T | T[]

一个或者多个值类型

Example

ts
const n1: IArray<number> = 1; // ✅
const n2: IArray<number> = [1]; // ✅
const s1: IArray<string> = 'hello'; // ✅
const a2: IArray<string> = ['hello']; // ✅

Type parameters

T

Released under the GPL-v3 License.