denormalizeLayers
denormalizeLayers(
model): (objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<object&object,ZodTypeAny,"passthrough"> |objectOutputType<{id:ZodString;layout:ZodOptional<ZodObject<{ },"passthrough",ZodTypeAny,objectOutputType<{ },ZodTypeAny,"passthrough">,objectInputType<{ },ZodTypeAny,"passthrough">>>;metadata:ZodOptional<ZodRecord<ZodString,ZodAny>>;paint:ZodOptional<ZodObject<{background-color:ZodOptional<ZodUnion<[ZodEffects<…, …, …>,ZodType<…, …, …>]>>;background-opacity:ZodOptional<ZodUnion<[ZodNumber,ZodType<…, …, …>]>>;background-pattern:ZodOptional<ZodUnion<[ZodString,ZodType<…, …, …>]>>; },"passthrough",ZodTypeAny,objectOutputType<{background-color:ZodOptional<ZodUnion<[…, …]>>;background-opacity:ZodOptional<ZodUnion<[…, …]>>;background-pattern:ZodOptional<ZodUnion<[…, …]>>; },ZodTypeAny,"passthrough">,objectInputType<{background-color:ZodOptional<ZodUnion<[…, …]>>;background-opacity:ZodOptional<ZodUnion<[…, …]>>;background-pattern:ZodOptional<ZodUnion<[…, …]>>; },ZodTypeAny,"passthrough">>>;type:ZodLiteral<"background">; },ZodTypeAny,"passthrough">)[]
Defined in: packages/core/src/model/normalize.ts:321
Reassemble the v1 layer array.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
model | MapModel |
Returns
Section titled “Returns”(objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<object & object, ZodTypeAny, "passthrough"> | objectOutputType<{ id: ZodString; layout: ZodOptional<ZodObject<{ }, "passthrough", ZodTypeAny, objectOutputType<{ }, ZodTypeAny, "passthrough">, objectInputType<{ }, ZodTypeAny, "passthrough">>>; metadata: ZodOptional<ZodRecord<ZodString, ZodAny>>; paint: ZodOptional<ZodObject<{ background-color: ZodOptional<ZodUnion<[ZodEffects<…, …, …>, ZodType<…, …, …>]>>; background-opacity: ZodOptional<ZodUnion<[ZodNumber, ZodType<…, …, …>]>>; background-pattern: ZodOptional<ZodUnion<[ZodString, ZodType<…, …, …>]>>; }, "passthrough", ZodTypeAny, objectOutputType<{ background-color: ZodOptional<ZodUnion<[…, …]>>; background-opacity: ZodOptional<ZodUnion<[…, …]>>; background-pattern: ZodOptional<ZodUnion<[…, …]>>; }, ZodTypeAny, "passthrough">, objectInputType<{ background-color: ZodOptional<ZodUnion<[…, …]>>; background-opacity: ZodOptional<ZodUnion<[…, …]>>; background-pattern: ZodOptional<ZodUnion<[…, …]>>; }, ZodTypeAny, "passthrough">>>; type: ZodLiteral<"background">; }, ZodTypeAny, "passthrough">)[]
Remarks
Section titled “Remarks”The inline-source runtime half is merged back into the source object rather
than left as a sibling runtime.source key, so the reconstructed layer is
byte-for-byte what the author wrote.