Do not mutate this! It is memoized to avoid re-parsing the same path over and over.

interface ParsedJsonPropertyKey {
    castsAndModifiers: readonly (string | Class<DialectAwareFn>)[];
    pathSegments: readonly (string | number)[];
}

Properties

castsAndModifiers: readonly (string | Class<DialectAwareFn>)[]

If it's a string, it's a cast. If it's a class, it's a modifier.

pathSegments: readonly (string | number)[]