{
  "version": 3,
  "sources": ["../../src/opaque-type/index.ts"],
  "sourcesContent": ["declare const tag: unique symbol;\n\ninterface Tagged<Tag> {\n  readonly [tag]: Tag;\n}\n\n/**\n * Creates an opaque type, which hides its internal details from the public, and can only be created by being used explicitly.\n *\n * @example\n * ```ts\n * type AccountId = OpaqueType<number, { readonly t: unique symbol }>;\n * type PersonId = OpaqueType<number, { readonly t: unique symbol }>;\n *\n * const createPersonId = () => 1 as PersonId;\n *\n * // This will fail to compile, as they are fundamentally different types.\n * const accountId: AccountId = createPersonId();\n * ```\n */\nexport type OpaqueType<Type, Tag = unknown> = Type & Tagged<Tag>;\n"],
  "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
  "names": ["opaque_type_exports", "__toCommonJS"]
}
