Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deepmergets/dist/deno/types/utils.ts

Deeply merge 2 or more objects respecting type information.
Go to Latest
import * as deepmergets from "https://deno.land/x/deepmergets@v4.0.2/dist/deno/types/utils.ts";

Type Aliases

And operator for types.

Returns whether or not all the given types are arrays.

Returns whether or not all the given types are maps.

Returns whether or not all the given types are never.

Returns whether or not all the given types are records.

Returns whether or not all the given types are sets.

Filter out nevers from a tuple.

Flatten a complex type such as a union or intersection of objects into a single object.

Safely test whether or not the first given types extends the second.

Returns whether or not the given type is an array.

Returns whether or not the given type is an map.

Safely test whether or not the given type is "never".

Returns whether or not the given type a record.

Returns whether or not the given type is an set.

Is the type a tuple?

Get all the keys of the given records.

Not operator for types.

Get all the optional keys on the types in the tuple.

Or operator for types.

Get all the required keys on the types in the tuple.

Union of the maps' values' types

Union of the maps' keys' types

Union of the sets' values' types

Get the value of the given key in the given object.