Defjs
Core

STRUCT

Type-only export of the internal enumerable tag key on objects produced while parsing endpoint input, used by the outbound encoder.

@defjs/core · Type

Signature

const STRUCT: unique symbol;

STRUCT is exported as a type only (export type { STRUCT }). @defjs/core has no runtime STRUCT export, so import { STRUCT } from '@defjs/core' fails to compile and gives no value.

It marks those objects so the outbound encoder knows which struct produced them. Response decoding and struct.parse leave it unset. The symbol is internal to the outbound encoder; application code should not depend on it.

Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao