Skip to content

Commit

Permalink
chore: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
limaofeng committed Nov 22, 2021
1 parent d2f5589 commit 067df05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/decorators/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getMetadata } from '../utils';
export default function library(metadata: LibraryMetadata, loadComponentsMethod?: string) {
return function (target: any) {
for (const key of Object.keys(metadata)) {
Reflect.defineMetadata(key, metadata[key], target);
Reflect.defineMetadata(key, (metadata as any)[key], target);
}

const id = Reflect.getMetadata('id', target);
Expand Down
3 changes: 1 addition & 2 deletions src/hooks/useSymbols.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
import { generateUUID } from '../utils';

import useComponent from './useComponent';

import { useSunmao } from '.';
import useSunmao from './useSunmao';

const COMPONENT = 'component';

Expand Down

0 comments on commit 067df05

Please sign in to comment.