|
|
@ -27,7 +27,6 @@ export function element_is<K extends keyof HTMLElementTagNameMap>(name: K, is: s
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function object_without_properties<T, K extends keyof T>(obj: T, exclude: K[]) {
|
|
|
|
export function object_without_properties<T, K extends keyof T>(obj: T, exclude: K[]) {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion
|
|
|
|
|
|
|
|
const target = {} as Pick<T, Exclude<keyof T, K>>;
|
|
|
|
const target = {} as Pick<T, Exclude<keyof T, K>>;
|
|
|
|
for (const k in obj) {
|
|
|
|
for (const k in obj) {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|