`S.omit("id", "contains")` doesn't omit the fields

why S.omit("id", "contains") doesn't omit the keys from the schema, is it lazy evaluated? I've the following schema
export const CrateDb = Crate.pipe(
  S.typeSchema,
  S.omit("contains", "id"),
  S.extend(
    S.Struct({
      map: S.String,
      drop_pool: S.String,
      tournament: S.String,
      type: S.String,
    }),
  ),
  S.asSchema,
);

and the keys don't get omitted, when I use (scheam)=>S.transform (schema, scheam.pipe(S.omit("id","contains")),...) it gets omitted
Was this page helpful?