Skip to content

Commit 0a36895

Browse files
chore(docs): v0.2.21 API docs & examples
1 parent bd3838c commit 0a36895

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

docs/api/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
Ƭ **File**: string \| { content: string ; extname: string }
3333

34-
*Defined in [index.ts:75](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L75)*
34+
*Defined in [index.ts:75](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L75)*
3535

3636
Represents the content of the file or the content and the extension name.
3737

@@ -41,7 +41,7 @@ Represents the content of the file or the content and the extension name.
4141

4242
`Const` **version**: string = process.env.VERSION
4343

44-
*Defined in [index.ts:287](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L287)*
44+
*Defined in [index.ts:287](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L287)*
4545

4646
the version of the library (process.env.VERSION is set by webpack, at compile-time)
4747

@@ -51,7 +51,7 @@ the version of the library (process.env.VERSION is set by webpack, at compile-ti
5151

5252
**loadModule**(`path`: string, `options?`: [Options](interfaces/options.md)): Promise<any\>
5353

54-
*Defined in [index.ts:759](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L759)*
54+
*Defined in [index.ts:755](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L755)*
5555

5656
This is the main function.
5757

docs/api/interfaces/cache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
**get**(`key`: string): Promise<string\>
2323

24-
*Defined in [index.ts:67](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L67)*
24+
*Defined in [index.ts:67](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L67)*
2525

2626
#### Parameters:
2727

@@ -37,7 +37,7 @@ ___
3737

3838
**set**(`key`: string, `value`: string): Promise<void\>
3939

40-
*Defined in [index.ts:68](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L68)*
40+
*Defined in [index.ts:68](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L68)*
4141

4242
#### Parameters:
4343

docs/api/interfaces/modulehandler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ see [additionalModuleHandlers](options.md#additionalmodulehandlers)
1515

1616
▸ (`source`: string, `path`: string, `options`: [Options](options.md)): Promise<[Module](module.md)\>
1717

18-
*Defined in [index.ts:270](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L270)*
18+
*Defined in [index.ts:270](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L270)*
1919

2020
Used by the library when it does not know how to handle a given file type (eg. `.json` files).
2121
see [additionalModuleHandlers](options.md#additionalmodulehandlers)

docs/api/interfaces/options.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
`Optional` **additionalBabelPlugins**: any[]
3232

33-
*Defined in [index.ts:153](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L153)*
33+
*Defined in [index.ts:153](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L153)*
3434

3535
Additional babel plugins. [TBD]
3636

@@ -45,7 +45,7 @@ ___
4545

4646
`Optional` **additionalModuleHandlers**: Record<string, [ModuleHandler](modulehandler.md)\>
4747

48-
*Defined in [index.ts:160](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L160)*
48+
*Defined in [index.ts:160](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L160)*
4949

5050
Additional module type handlers. see [ModuleHandler](modulehandler.md)
5151

@@ -55,7 +55,7 @@ ___
5555

5656
`Optional` **compiledCache**: [Cache](cache.md)
5757

58-
*Defined in [index.ts:200](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L200)*
58+
*Defined in [index.ts:200](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L200)*
5959

6060
[get](cache.md#get)() and [set](cache.md#set)() functions of this object are called when the lib needs to save or load already compiled code. get and set functions must return a `Promise` (or can be `async`).
6161
Since compilation consume a lot of CPU, is is always a good idea to provide this object.
@@ -99,7 +99,7 @@ ___
9999

100100
`Optional` **moduleCache**: Record<string, [Module](module.md)\>
101101

102-
*Defined in [index.ts:99](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L99)*
102+
*Defined in [index.ts:99](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L99)*
103103

104104
Initial cache that will contain resolved dependencies. All new modules go here.
105105
`vue` must initially be contained in this object.
@@ -123,7 +123,7 @@ See also [[options.loadModule]].
123123

124124
**addStyle**(`style`: string, `scopeId`: string): void
125125

126-
*Defined in [index.ts:142](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L142)*
126+
*Defined in [index.ts:142](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L142)*
127127

128128
Called by the library when CSS style must be added in the HTML document.
129129

@@ -155,7 +155,7 @@ ___
155155

156156
**getFile**(`path`: string): Promise<[File](../README.md#file)\>
157157

158-
*Defined in [index.ts:120](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L120)*
158+
*Defined in [index.ts:120](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L120)*
159159

160160
Called by the library when it needs a file.
161161

@@ -188,7 +188,7 @@ ___
188188

189189
`Optional`**loadModule**(`path`: string, `options`: [Options](options.md)): Promise<[Module](module.md) \| undefined\>
190190

191-
*Defined in [index.ts:239](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L239)*
191+
*Defined in [index.ts:239](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L239)*
192192

193193
Called when the lib requires a module. Do return `undefined` to let the library handle this.
194194

@@ -221,7 +221,7 @@ ___
221221

222222
`Optional`**log**(`type`: string, ...`data`: any[]): void
223223

224-
*Defined in [index.ts:218](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/c0792ec/src/index.ts#L218)*
224+
*Defined in [index.ts:218](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/bd3838c/src/index.ts#L218)*
225225

226226
Called by the library when there is somthing to log (eg. scripts compilation errors, template compilation errors, template compilation tips, style compilation errors, ...)
227227

0 commit comments

Comments
 (0)