# PositiveNumericStringGt

`type` in `services` · v0.7.1

<https://docs.seedcord.org/packages/services/0.7.1/types/positive-numeric-string-gt>

Returns a boolean for whether `A` is greater than `B`, where `A` and `B` are both positive numeric strings.

## Examples

```ts
type A = PositiveNumericStringGt<'500', '1'>;
//=> true

type B = PositiveNumericStringGt<'1', '1'>;
//=> false

type C = PositiveNumericStringGt<'1', '500'>;
//=> false
```

## Declaration

```ts
type PositiveNumericStringGt<
    A extends string,
    B extends string
> = A extends B
    ? false
    : [
            TupleOf<StringLength<A>, 0>,
            TupleOf<StringLength<B>, 0>
        ] extends infer R extends [
            readonly unknown[],
            readonly unknown[]
        ]
      ? R[0] extends [
            ...R[1],
            ...infer Remain extends readonly unknown[]
        ]
          ? 0 extends Remain["length"]
              ? SameLengthPositiveNumericStringGt<A, B>
              : true
          : false
      : never;
```
