Skip to content

Commit

Permalink
Chill a bit, take a look later
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Dec 23, 2023
1 parent 443d994 commit cf7d5f3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/lib/objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import { annotateObject, merge, updateText } from '../annotate';
import { define } from '../Decoder';
import { subtract, isPojo } from '../_utils';
import type { AllowImplicit } from './_helpers';
import type { Annotation } from '../annotate';
import type { Decoder, DecodeResult } from '../Decoder';

type ObjectDecoderType<T> = AllowImplicit<{
// TODO: Restore AllowImplicit here somehow
// import type { AllowImplicit } from './_helpers';
type ObjectDecoderType<T> = {
[K in keyof T]: T[K] extends Decoder<infer V> ? V : never;
}>;
};

/**
* Accepts any "plain old JavaScript object", but doesn't validate its keys or
Expand Down Expand Up @@ -169,9 +170,7 @@ export function inexact<O extends Record<string, Decoder<any>>>(
} & Record<string, unknown>;
allkeys.forEach((k) => {
if (safekeys.has(k)) {
const value =
// @ts-expect-error - look into this later
safepart[k];
const value = safepart[k];
if (value !== undefined) {
// @ts-expect-error - look into this later
rv[k] = value;
Expand Down

0 comments on commit cf7d5f3

Please sign in to comment.