Skip to content

Commit

Permalink
Fix typings.d.ts file to be importable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprey committed Nov 20, 2018
1 parent 386b08f commit 203b4d7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to the "svelte-intellisense" extension will be documented in

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [1.1.1] 20.11.2018

- [Fix] Fix `typings.d.ts` file to be importable

## [1.1.0] 19.11.2018
- [Fix] Fix issue with component name parsing with default features set (Missing feature `name` in defaults features list)
- [Added] Implement parsing of js types for data properties from `@type` keyword and from default value
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sveltedoc-parser",
"version": "1.1.0",
"version": "1.1.1",
"description": "Generate a JSON documentation for a Svelte file",
"main": "index.js",
"scripts": {
Expand Down
22 changes: 11 additions & 11 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Represents a data structure of JSDoc keywords, like a `@type {string}`
*/
declare interface JSDocKeyword {
export interface JSDocKeyword {
/**
* The name of keyword.
* @example for `@param {string} Description of this property`, this field equals a `param`.
Expand All @@ -14,7 +14,7 @@ declare interface JSDocKeyword {
description: string;
}

declare interface JSDocType {
export interface JSDocType {
/**
* Kind of this type.
*/
Expand All @@ -35,7 +35,7 @@ declare interface JSDocType {
value?: any
}

declare interface ISvelteItem {
export interface ISvelteItem {
/**
* The name of the item.
*/
Expand All @@ -54,7 +54,7 @@ declare interface ISvelteItem {
keywords?: JSDocKeyword[];
}

declare interface SvelteDataItem extends ISvelteItem {
export interface SvelteDataItem extends ISvelteItem {
/**
* The JS type of property.
*/
Expand All @@ -65,37 +65,37 @@ declare interface SvelteDataItem extends ISvelteItem {
value?: any
}

declare interface SvelteComputedItem extends ISvelteItem {
export interface SvelteComputedItem extends ISvelteItem {
/**
* The list of data or computed properties names, marked as depended to this property.
*/
dependencies: string[]
}

declare interface SvelteMethodItem extends ISvelteItem {
export interface SvelteMethodItem extends ISvelteItem {
// TODO
args?: any[]
}

declare interface SvelteComponentItem extends ISvelteItem {
export interface SvelteComponentItem extends ISvelteItem {
/**
* The relative path to improted component.
*/
value: string;
}

declare interface SvelteEventItem extends ISvelteItem {
export interface SvelteEventItem extends ISvelteItem {
/**
* The name of HTML element if propagated standart JS Dom event or null.
*/
parent?: string|null;
}

declare interface SvelteSlotItem extends ISvelteItem {
export interface SvelteSlotItem extends ISvelteItem {

}

declare interface SvelteRefItem extends ISvelteItem {
export interface SvelteRefItem extends ISvelteItem {
/**
* The name of HTML element or component that binded with this ref name.
*/
Expand All @@ -105,7 +105,7 @@ declare interface SvelteRefItem extends ISvelteItem {
/**
* Represents a Svelte component documentation object.
*/
declare interface SvelteComponentDoc {
export interface SvelteComponentDoc {
/**
* The name of the parsed component.
*/
Expand Down

0 comments on commit 203b4d7

Please sign in to comment.