angular / ts-api-guardian

MIT License
15 stars 15 forks source link

New typescript syntax is not supported #23

Closed alan-agius4 closed 6 years ago

alan-agius4 commented 6 years ago

I noticed that some typescript features are not supported. Example keyof

An invalid golden files is being generated

Example instead of the below;

/** @stable */
export declare type SimpleChanges<T = any> = {
    [P in keyof T]?: SimpleChange<T[P]>;
};
/** @stable */
export declare const SkipSelf: SkipSelfDecorator;

it is generating the below in public_api_guard/core/core.d.ts

/** @stable */
export declare type SimpleChanges<T = any> = {
    [P in keyof

/** @stable */
export declare const SkipSelf: SkipSelfDecorator;

https://github.com/angular/angular/pull/22103#discussion_r167059184