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
[index:string]: any;
TxtNode
textlint/packages/@textlint/ast-node-types/src/NodeType.ts
Lines 50 to 59 in ed732f1
[index:string]: any; break Omit<> return type.
Omit<>
https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgJLIN4Chm+WATwAcIAuZAIiIoG4c8EALYAGwBMoIRyBnMKUAHMA2gF06eZMNBsIAD1J8BIQaPJwQBOgF8sWQiWQB5ZAF5jAW2BgAPKgA0lAxAoA+ZADJM9XM-IUAe1osXSwEAJA+ZADyI2EKJlYOLgpRM0xtOgB6LMkAPQB+PSA
interface I { type: "p"; children: string[]; [index:string]: any; } type O = Omit<I, "type"> & { type: "o"; } const o: O["children"] = {}; // ^? any
It prevent that extends TxtNode types.
https://github.com/textlint-rule/sentence-splitter/blob/40b80206aa0076d1ce8beab3bf4e01c69ed710a1/src/sentence-splitter.ts#L41-L48
The text was updated successfully, but these errors were encountered:
Fix for textlint v13.4.1
c2a14da
textlint/textlint#1294
Successfully merging a pull request may close this issue.
textlint/packages/@textlint/ast-node-types/src/NodeType.ts
Lines 50 to 59 in ed732f1
[index:string]: any;
breakOmit<>
return type.https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgJLIN4Chm+WATwAcIAuZAIiIoG4c8EALYAGwBMoIRyBnMKUAHMA2gF06eZMNBsIAD1J8BIQaPJwQBOgF8sWQiWQB5ZAF5jAW2BgAPKgA0lAxAoA+ZADJM9XM-IUAe1osXSwEAJA+ZADyI2EKJlYOLgpRM0xtOgB6LMkAPQB+PSA
It prevent that extends TxtNode types.
https://github.com/textlint-rule/sentence-splitter/blob/40b80206aa0076d1ce8beab3bf4e01c69ed710a1/src/sentence-splitter.ts#L41-L48
The text was updated successfully, but these errors were encountered: