Generate a JSON documentation for a Svelte (https://github.com/sveltejs/svelte) component
self
and trusted
event modifiers [Issue #80].JSDocTypeFunction
to support functions types in variable definitions and provide details about function parameters and methods.JSDocType
to support new JSDocTypeFunction
array
, object
, function
.@type {import('../typings.d.ts').ExternalTypeClass}
. In order to do this, new field importPath
introduced to JSDocType
, in the name property now it returns imported class name, f.ex.: ExternalTypeClass
.typings.d.ts
file.SvelteSlotParameter
definition, to support name
, description
, type
fields, instead of many not relevant fields that was inherited from ISvelteItem
interface.SvelteSlotItem
definition, to improve consistency:
parameters
property to params
to be most likely the same as SvelteMethodItem
. Old field still available until 5.* release.Thanks a lot @soft-decay for contributing in this release!
args
property was renamed to params
;return
item for methods:
desc
property was renamed to description
;type
property now contains the JSDocType
object, instead of string
type with text representation of type. This can be gets from text
property of JSDocType
object;SvelteMethodParamItem
type;loc
property was removed, please use locations
instead, if you late with upgrade;value
property of SvelteComponentItem
was removed, please use importPath
insteadhtmlparser2
to htmlparser2-svelte special fork of htmlparser2 to handle Svelte specific cases to parse markupround.button.svelte -> RoundButton
[Fixed]
Solve issue #26, support export { variables as var }
statement.[Added]
now interface SvelteDataItem
provides a new property localName
with information about internal name of component property.espree
to 7.2.0
htmlparser2
to 3.9.2
eslint
to fix issues after upgrading to new versions10.0.0
, Node.js v8 now is not supported, this is related with security isssues above. Please let me know if it still required.keywords
feature correctly supported.Thanks to hontas for following changes:
@type
keyword.