Interface: MethodApiDefinition
Defined in: lib/recognizers/types.ts:41
Recognizes commands called as methods, such as cache.write().
Extends
ApiDefinitionBase
Properties
argumentIndex?
optionalargumentIndex:number
Defined in: lib/recognizers/types.ts:53
Zero-based argument used when resource is argument.
importSources?
optionalimportSources:string[]
Defined in: lib/recognizers/types.ts:49
Optional module specifiers that restrict the match.
methods
methods:
string[]
Defined in: lib/recognizers/types.ts:43
Method names to recognize, such as write in cache.write().
name
name:
string
Defined in: lib/recognizers/types.ts:32
Stable name used to identify the API.
Inherited from
ApiDefinitionBase.name
penalty?
optionalpenalty:number
Defined in: lib/recognizers/types.ts:37
Sets the command leaf's starting penalty. Distance costs remain additive. Zero discards the command immediately; omit this to use ordinary scoring.
Inherited from
ApiDefinitionBase.penalty
receiverNames?
optionalreceiverNames:string[]
Defined in: lib/recognizers/types.ts:47
Optional receiver names that restrict the match.
resource?
optionalresource:"receiver"|"argument"
Defined in: lib/recognizers/types.ts:51
The receiver or selected argument whose declaration determines distance.