We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9de6f2c commit 0b23d1fCopy full SHA for 0b23d1f
3 files changed
src/darkify.test.ts
@@ -1,4 +1,4 @@
1
-import Darkify from './darkify';
+import { Darkify } from './darkify';
2
import { jest } from '@jest/globals';
3
4
describe('Darkify', () => {
src/darkify.ts
@@ -2,7 +2,7 @@ import { isBrowser } from './isBrowser';
import { defaultOptions } from './defaultOptions';
import { type Options } from '../types';
5
-export default class Darkify {
+export class Darkify {
6
private static readonly storageKey = 'theme';
7
readonly options: Options = {};
8
theme: string = 'light';
src/index.ts
@@ -1 +1,2 @@
-export { default } from './darkify';
+export default Darkify;
0 commit comments