fix test errors
This commit is contained in:
parent
e9f56f3c2a
commit
351f1585b7
@ -38,6 +38,7 @@ interface Options {
|
|||||||
name: string;
|
name: string;
|
||||||
feature: number;
|
feature: number;
|
||||||
loose?: boolean;
|
loose?: boolean;
|
||||||
|
inherits?: () => Options;
|
||||||
// same as PluginObject.manipulateOptions
|
// same as PluginObject.manipulateOptions
|
||||||
manipulateOptions: (options: unknown, parserOpts: ParserOptions) => void;
|
manipulateOptions: (options: unknown, parserOpts: ParserOptions) => void;
|
||||||
// TODO(flow->ts): change to babel api
|
// TODO(flow->ts): change to babel api
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export default declare((api, options) => {
|
|||||||
) {
|
) {
|
||||||
throw new Error("Unsupported decorators version: " + version);
|
throw new Error("Unsupported decorators version: " + version);
|
||||||
}
|
}
|
||||||
if (version !== undefined && options.legacy !== undefined) {
|
if (options.version !== undefined && options.legacy !== undefined) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'You can either specify `legacy: true` or `version: "legacy"` with decorators, not both.',
|
'You can either specify `legacy: true` or `version: "legacy"` with decorators, not both.',
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user