refactor(compiler/types): convert compiler options documentation to jsdoc

BREAKING CHANGE: `getTextMode` compiler option signature has changed from

  ```ts
  (tag: string, ns: string, parent: ElementNode | undefined) => TextModes
  ```

  to

  ```ts
  (node: ElementNode, parent: ElementNode | undefined) => TextModes
  ```
This commit is contained in:
Evan You
2020-05-07 11:01:36 -04:00
parent 304ab8c99b
commit e58beecc97
5 changed files with 123 additions and 49 deletions

View File

@@ -2515,7 +2515,7 @@ foo
}
return ns
},
getTextMode: tag => {
getTextMode: ({ tag }) => {
if (tag === 'textarea') {
return TextModes.RCDATA
}