MOVED!!
ts-api-guardian
has moved to https://github.com/angular/angular/tree/master/tools/ts-api-guardian
License: MIT License
ts-api-guardian
has moved to https://github.com/angular/angular/tree/master/tools/ts-api-guardian
Expecting:
'Renderer.invokeElementMethod(renderElement:any, methodName:string, args?:any[]):any',
Was:
'Renderer.invokeElementMethod(renderElement:any, methodName:string, args:any[]):any',
Note: missing args?
The command gulp public-api:update
fails on Windows with the error:
Error: Source file "dist\packages-dist\core\index.d.ts" not found
However the file exists. It is not found because the path string is made of Windows path delimiters \
instead of Unix delimiters /
.
As a dirty hack you can change this.fileName = fileName;
in the ResolvedDeclarationEmitter
constructor to this.fileName = fileName.replace(/\\/g,"/");
.
With this change the update command runs successfully.
However a more appropriate fix might be necessary.
When I try to overload a function it doesn't add the overloaded signature to the api file like it does for class methods.
Code of the function:
export function registerLocaleData(data: any, extraData?: any): void;
export function registerLocaleData(data: any, localeId?: string, extraData?: any): void;
export function registerLocaleData(data: any, localeId?: string | any, extraData?: any): void {
...
}
Declarations generated by typescript:
export declare function registerLocaleData(data: any, extraData?: any): void;
export declare function registerLocaleData(data: any, localeId?: string, extraData?: any): void;
Api file:
export declare function registerLocaleData(data: any, extraData?: any): void;
REPRO:
original_symbol
as _private_symbol
.ts-api-guardian
on the with stripExportPattern
to include any symbol that begins with _
(e.g. /^_/)RECEIVED:
Exception: Symbol "original_symbol" was aliased as "_private_symbol". Aliases are not supported."
EXPECTED:
API golden file produced without error that doesn't include _private_symbol
.
@IgorMinar could you please cut a release now that #7 has been merged ?
Required for angular/angular#9158 which I would like to land before next RC. Thanks.
/cc @IgorMinar could you please do that ?
Is there a way to batch the update for all angular repos ?
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;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.