Link Search Menu Expand Document

MongoID overview

MongoDB Object ID

Added in v1.0.0


Table of contents


utils

MongoID

Signature

export declare const MongoID: t.BrandC<t.StringC, MongoIDBrand>

Added in v1.0.0

MongoID (type alias)

Signature

export type MongoID = t.Branded<string, MongoIDBrand>

Added in v1.0.0

MongoIDBrand (interface)

Signature

export interface MongoIDBrand {
  readonly MongoID: unique symbol
}

Added in v1.0.0

mongoIDDecoder

Signature

export declare const mongoIDDecoder: <S extends string>() => D.Decoder<S, t.Branded<S, MongoIDBrand>>

Added in v1.1.0