# SameLengthPositiveNumericStringGt

`type` in `services` · v0.8.2

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

Returns a boolean for whether `A` represents a number greater than `B`, where `A` and `B` are both numeric strings and have the same length.

## Examples

```ts
type A = SameLengthPositiveNumericStringGt<'50', '10'>;
//=> true

type B = SameLengthPositiveNumericStringGt<'10', '10'>;
//=> false
```

## Declaration

```ts
type SameLengthPositiveNumericStringGt<
    A extends string,
    B extends string
> = A extends `${infer FirstA}${infer RestA}`
    ? B extends `${infer FirstB}${infer RestB}`
        ? FirstA extends FirstB
            ? SameLengthPositiveNumericStringGt<RestA, RestB>
            : PositiveNumericCharacterGt<FirstA, FirstB>
        : never
    : false;
```
