Skip to content

Commit 05a7660

Browse files
committed
suggestion
1 parent aceca81 commit 05a7660

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ function responseSchemaCompiler (fjsOpts, { schema /* method, url, httpStatus */
1818
}
1919

2020
module.exports = SerializerSelector
21+
module.exports.default = SerializerSelector
22+
module.exports.SerializerSelector = SerializerSelector

standalone.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SerializerCompiler } from './index'
1+
import { SerializerCompiler } from '.'
22

33
export type RouteDefinition = {
44
method: string,
@@ -7,10 +7,11 @@ export type RouteDefinition = {
77
schema?: unknown,
88
}
99

10-
interface Option {
10+
export interface Options {
1111
readMode: Boolean,
1212
storeFunction?(opts: RouteDefinition, schemaSerializationCode: string): void,
1313
restoreFunction?(opts: RouteDefinition): void,
1414
}
1515

16-
export declare function StandaloneSerializer(Options): SerializerCompiler;
16+
export function StandaloneSerializer(options: Options): SerializerCompiler;
17+
export default StandaloneSerializer

standalone.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ function StandaloneSerializer (options = { readMode: true }) {
3939
}
4040

4141
module.exports = StandaloneSerializer
42+
module.exports.default = StandaloneSerializer
43+
module.exports.StandaloneSerializer = StandaloneSerializer
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)