- Description:
This key defines the data type for snippet parameter parsing.
The value can be
array,object,string,boolean, ornumber. This specifies the expected data type when parsing snippet parameters.- Appears in:
└── Snippet Model └── type- Type:
string- Allowed values:
arrayobjectstringbooleannumber- Examples:
In this example, we have configured a snippet model to expect a string type.
Copied to clipboard_snippets: example: snippet: <<example [[param]]>> params: param: parser: argument options: model: type: string{ "_snippets": { "example": { "snippet": "<<example [[param]]>>", "params": { "param": { "parser": "argument", "options": { "model": { "type": "string" } } } } } } }