Skip to content
New issue

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

Add support for field split get/set declaration #82

Open
MangelMaxime opened this issue Apr 19, 2024 · 0 comments
Open

Add support for field split get/set declaration #82

MangelMaxime opened this issue Apr 19, 2024 · 0 comments

Comments

@MangelMaxime
Copy link
Contributor

TypeScript documentation:

export declare class Logger {
    get logHandler(): string;
    set logHandler(val: string);
}

translates into

type [<AllowNullLiteral>] Logger =
    abstract logHandler: string with get, set

Note

Add supports even if only one variation is provided

Example of npm package using this features:

@firebase/logger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant