Browse Source

fix(nocodb): unknown -> any

pull/5262/head
Wing-Kam Wong 2 years ago
parent
commit
368d99bb11
  1. 4
      packages/nocodb/src/lib/meta/helpers/extractProps.ts

4
packages/nocodb/src/lib/meta/helpers/extractProps.ts

@ -1,6 +1,6 @@
import DOMPurify from 'isomorphic-dompurify';
export function extractProps<T extends Record<string, unknown>>(
export function extractProps<T extends Record<string, any>>(
body: T,
props: string[]
): Partial<T> {
@ -11,7 +11,7 @@ export function extractProps<T extends Record<string, unknown>>(
}, {});
}
export function extractPropsAndSanitize<T extends Record<string, unknown>>(
export function extractPropsAndSanitize<T extends Record<string, any>>(
body: T,
props: string[]
): Partial<T> {

Loading…
Cancel
Save