Create e.ts

This commit is contained in:
Enitoni 2018-12-10 20:57:31 +01:00 committed by GitHub
parent 0f3dc26291
commit 8b3794a2f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
e.ts Normal file
View File

@ -0,0 +1,17 @@
const E = 50;
type E = "e";
type EEE<E> = E;
const EEEE = Array;
const e = <EE extends E>(e: EE): EEE<EE> => {
return e;
};
const ee = new EEEE(E).fill("e" as E);
for (const eee of ee) {
const eeee = e(eee);
console.log(eeee);
}