# bigint

Creates a bigint schema.

```ts
const Schema = v.bigint<TMessage>(message);
```

## Generics

- `TMessage` <Property {...properties.TMessage} />

## Parameters

- `message` <Property {...properties.message} />

### Explanation

With `bigint` you can validate the data type of the input. If the input is not a bigint, you can use `message` to customize the error message.

## Returns

- `Schema` <Property {...properties.Schema} />

## Examples

The following examples show how `bigint` can be used.

### Force minimum

Schema that forces a minimum bigint value.

```ts
const MinBigintSchema = v.pipe(v.bigint(), v.toMinValue(10n));
```

### Validate maximum

Schema that validates a maximum bigint value.

```ts
const MaxBigintSchema = v.pipe(v.bigint(), v.maxValue(999n));
```

## Related

The following APIs can be combined with `bigint`.

### Schemas

<ApiList
  items={[
    'array',
    'exactOptional',
    'intersect',
    'lazy',
    'looseObject',
    'looseTuple',
    'map',
    'nonNullable',
    'nonNullish',
    'nonOptional',
    'nullable',
    'nullish',
    'object',
    'objectWithRest',
    'optional',
    'record',
    'set',
    'strictObject',
    'strictTuple',
    'tuple',
    'tupleWithRest',
    'undefinedable',
    'union',
  ]}
/>

### Methods

<ApiList
  items={[
    'assert',
    'config',
    'fallback',
    'getDefault',
    'getDefaults',
    'getFallback',
    'getFallbacks',
    'is',
    'message',
    'parse',
    'parser',
    'pipe',
    'safeParse',
    'safeParser',
  ]}
/>

### Actions

<ApiList
  items={[
    'check',
    'brand',
    'description',
    'flavor',
    'gtValue',
    'guard',
    'ltValue',
    'maxValue',
    'metadata',
    'minValue',
    'multipleOf',
    'notValue',
    'notValues',
    'rawCheck',
    'rawTransform',
    'readonly',
    'title',
    'toBoolean',
    'toDate',
    'toMaxValue',
    'toMinValue',
    'toNumber',
    'toString',
    'transform',
    'value',
    'values',
  ]}
/>

### Utils

<ApiList items={['entriesFromList', 'isOfKind', 'isOfType']} />
