mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
added typings.d.ts
This commit is contained in:
parent
448c7208b9
commit
b450354e57
@ -1,5 +1,3 @@
|
||||
/* eslint-disable no-param-reassign */
|
||||
// @ts-ignore
|
||||
import svelteDoc from 'sveltedoc-parser';
|
||||
|
||||
import * as path from 'path';
|
||||
@ -10,6 +8,7 @@ import * as path from 'path';
|
||||
*/
|
||||
export default async function svelteDocgen(source: string) {
|
||||
// get filename for source content
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
const file = path.basename(this._module.resource);
|
||||
|
||||
// set SvelteDoc options
|
||||
|
3
addons/docs/src/frameworks/svelte/typings.d.ts
vendored
Normal file
3
addons/docs/src/frameworks/svelte/typings.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare module 'sveltedoc-parser' {
|
||||
export function parse(options: any): Promise<any>;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user