Skip to content

Commit a077f07

Browse files
committed
docs: up-to-date Resolver interface
1 parent 8c72c8f commit a077f07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/dev/using-api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ A `Resolver` implements the following interface:
346346
```ts
347347
import {
348348
type ConfigData,
349+
type MetaDataTable,
349350
type Plugin,
350351
type ResolverOptions,
351352
type Transformer,
@@ -355,7 +356,7 @@ import {
355356

356357
export interface Resolver {
357358
name: string;
358-
resolveElements?(id: string, options: ResolverOptions): unknown | null;
359+
resolveElements?(id: string, options: ResolverOptions): MetaDataTable | null;
359360
resolveConfig?(id: string, options: ResolverOptions): ConfigData | null;
360361
resolvePlugin?(id: string, options: ResolverOptions): Plugin | null;
361362
resolveTransformer?(id: string, options: ResolverOptions): Transformer | null;

0 commit comments

Comments
 (0)