PokéRogue
    Preparing search index...

    Type Alias WritableArray<ArrayType>

    WritableArray: ArrayType extends readonly []
        ? []
        : ArrayType extends readonly [...(infer U), infer V]
            ? [...U, V]
            : ArrayType extends readonly [infer U, ...(infer V)]
                ? [U, ...V]
                : ArrayType extends ReadonlyArray<infer U> ? U[] : ArrayType

    Create a writable version of the given array type.

    Type Parameters

    • ArrayType extends readonly unknown[]