mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
feat(unstable): type lint plugin visitor (#28005)
This PR strongly types the JS plugin visitor. ```ts export default { name: "foo", rules: { bar: { create(ctx) { return { // Plain ast node visitor Identifier(node) {}, // Exit visitor "Identifier:exit"(node) {}, // Custom selectors, `node` needs to be typed manually "FunctionDeclaration > Identifier"(node: Deno.lint.Identifier) {} } } } } } ``` Follow up to https://github.com/denoland/deno/pull/27977
This commit is contained in:
parent
703fdd8607
commit
615bf8a4b0
1 changed files with 237 additions and 170 deletions
407
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
407
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue