Skip to content

Commit

Permalink
doc: add strictness to ts interface
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Jun 25, 2024
1 parent f2aac03 commit c12f7a8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/guide/rule-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,17 @@ interface RuleObject {
interface Pattern {
context: string
selector: string
strictness?: Strictness
}

// See https://ast-grep.github.io/advanced/match-algorithm.html
type Strictness =
| 'cst'
| 'smart'
| 'ast'
| 'relaxed'
| 'signature'

// See Relation rule for explanation
interface Relation {
stopBy?: 'neighbor' | 'end' | RuleObject
Expand Down

0 comments on commit c12f7a8

Please sign in to comment.