We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26b12cb commit 34d5e4aCopy full SHA for 34d5e4a
src/index.ts
@@ -26,13 +26,13 @@ interface CoffeeScriptError extends Error {
26
27
const omit = <T extends object, K extends keyof T>(
28
obj: T,
29
- keys: K[]
+ keys: K[],
30
): Omit<T, K> =>
31
(Object.keys(obj) as K[])
32
.filter((key) => !keys.includes(key))
33
.reduce(
34
(res, key) => Object.assign(res, { [key]: obj[key] }),
35
- {} as Omit<T, K>
+ {} as Omit<T, K>,
36
);
37
38
const convertMessage = (e: CoffeeScriptError): PartialMessage => {
@@ -68,7 +68,7 @@ const coffeeScriptPlugin = (options: Options = {}): Plugin => ({
68
errors: [convertMessage(e as CoffeeScriptError)],
69
};
70
}
71
- }
+ },
72
73
},
74
});
0 commit comments