We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private declaration
Playground link with relevant code
export class UiKitModule { private data: string = '123'; private getData(params?: string): string { return this.data; } forRoot(params?: string): string { return this.getData(params) + '4'; } forChild(params?: string): string { return this.getData(params) + '5'; } } export class UiKitModuleNativePrivate { #data: string = '123'; #getData(params?: string): string { return this.#data; } forRoot(params?: string): string { return this.#getData(params) + '4'; } forChild(params?: string): string { return this.#getData(params) + '5'; } }
// Output d.ts export declare class UiKitModule { private data; private getData; forRoot(params?: string): string; forChild(params?: string): string; } export declare class UiKitModuleNativePrivate { #private; forRoot(params?: string): string; forChild(params?: string): string; }
// Output d.ts export declare class UiKitModule { private data: string; private getData(params?: string): string; forRoot(params?: string): string; forChild(params?: string): string; } export declare class UiKitModuleNativePrivate { forRoot(params?: string): string; forChild(params?: string): string; }
The text was updated successfully, but these errors were encountered:
This is intentional. In a declaration file the only thing matters is that there is a private property, the type is irrelevant.
Sorry, something went wrong.
This issue has been marked 'Working as Intended' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
any
.d.ts
No branches or pull requests
Bug Report
π Search Terms
private declaration
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
π Expected behavior
The text was updated successfully, but these errors were encountered: