Open
Description
export interface Type<T> {
__brand: T;
}
export function makeType<T>(): Type<T> {
return {} as Type<T>;
}
export function fn(): void {}
export declare namespace fn {
export var type: Type<string>;
}
fn.type = makeType();
This code has no issue with isolatedDeclarations
, but is reported as slow types by JSR.
isolatedDeclarations
requires manually declaring ambient namespace for the expando properties, so ideally no transformation is needed.