typocomath/src/generic/infer.ts

10 lines
328 B
TypeScript

export function infer<T>(arg: T) : T {
console.error('infer should be replaced with runtime type information by a magic TypeScript plugin')
return arg
}
export function typed<T>(dep: string, arg: T) : T {
console.error('infer should be replaced with runtime type information by a magic TypeScript plugin')
return arg
}