mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
791 B
TypeScript
21 lines
791 B
TypeScript
//// [tests/cases/compiler/declarationEmitDistributiveConditionalWithInfer.ts] ////
|
|
|
|
//// [declarationEmitDistributiveConditionalWithInfer.ts]
|
|
// This function's type is changed on declaration
|
|
export const fun = (
|
|
subFun: <Collection, Field extends keyof Collection>()
|
|
=> FlatArray<Collection[Field], 0>[]) => { };
|
|
|
|
|
|
//// [declarationEmitDistributiveConditionalWithInfer.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.fun = void 0;
|
|
// This function's type is changed on declaration
|
|
const fun = (subFun) => { };
|
|
exports.fun = fun;
|
|
|
|
|
|
//// [declarationEmitDistributiveConditionalWithInfer.d.ts]
|
|
export declare const fun: (subFun: <Collection, Field extends keyof Collection>() => FlatArray<Collection[Field], 0>[]) => void;
|