# Amount

`type` in `utils` · v0.10.0

<https://seedcord.org/docs/packages/utils/0.10.0/types/amount>

## Declaration

```ts
type Amount<TText extends string> = TText extends `${infer Value}ms`
    ? Value
    : TText extends `${infer Value}${Exclude<DurationUnit, "ms">}`
      ? Value
      : never;
```
