{
  "version": 3,
  "sources": ["../../src/aws-dynamodb/table.conditional-type-checks.ts"],
  "sourcesContent": ["/**\n * Asserts at compile time that the provided type argument's type resolves to the expected boolean literal type.\n * @param expectTrue - True if the passed in type argument resolved to true.\n */\nexport function typeAssert<T extends true | false>(expectTrue: T) {}\n\n/**\n * Asserts at compile time that the provided type argument's type resolves to true.\n */\nexport type AssertTrue<T extends true> = never;\n\n/**\n * Asserts at compile time that the provided type argument's type resolves to false.\n */\nexport type AssertFalse<T extends false> = never;\n\n/**\n * Asserts at compile time that the provided type argument's type resolves to the expected boolean literal type.\n */\nexport type Assert<T extends true | false, Expected extends T> = never;\n\n/**\n * Checks if type `T` has the specified type `U`.\n */\nexport type Has<T, U> = IsAny<T> extends true\n  ? true\n  : IsAny<U> extends true\n    ? false\n    : Extract<T, U> extends never\n      ? false\n      : true;\n\n/**\n * Checks if type `T` does not have the specified type `U`.\n */\nexport type NotHas<T, U> = Has<T, U> extends false ? true : false;\n\n/**\n * Checks if type `T` is possibly null or undefined.\n */\nexport type IsNullable<T> = Extract<T, null | undefined> extends never\n  ? false\n  : true;\n\n/**\n * Checks if type `T` exactly matches type `U`.\n */\nexport type IsExact<T, U> = TupleMatches<\n  AnyToBrand<T>,\n  AnyToBrand<U>\n> extends true\n  ? TupleMatches<\n      DeepMakeRequiredForIsExact<T>,\n      DeepMakeRequiredForIsExact<U>\n    > extends true // catch optional properties\n    ? true\n    : false\n  : false;\n\ntype DeepMakeRequiredForIsExact<T> = {\n  [P in keyof T]-?: DeepMakeRequiredForIsExact<AnyToBrand<T[P]>>;\n};\n\n/**\n * Checks if type `T` is the `any` type.\n */\n// https://stackoverflow.com/a/49928360/3406963\nexport type IsAny<T> = 0 extends 1 & T ? true : false;\n\n/**\n * Checks if type `T` is the `never` type.\n */\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\n/**\n * Checks if type `T` is the `unknown` type.\n */\nexport type IsUnknown<T> = IsNever<T> extends false\n  ? T extends unknown\n    ? unknown extends T\n      ? IsAny<T> extends false\n        ? true\n        : false\n      : false\n    : false\n  : false;\n\ntype TupleMatches<T, U> = Matches<[T], [U]> extends true ? true : false;\ntype Matches<T, U> = T extends U ? (U extends T ? true : false) : false;\n\ntype AnyToBrand<T> = IsAny<T> extends true\n  ? { __conditionalTypeChecksAny__: undefined }\n  : T;\n"],
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAIO,SAASE,EAAmCE,EAAe,CAAC",
  "names": ["table_conditional_type_checks_exports", "__export", "typeAssert", "__toCommonJS", "expectTrue"]
}
