Skip to content

Commit

Permalink
Export InternamRecord (#157)
Browse files Browse the repository at this point in the history
This is my fault, since the lib built and tested fine I thought maybe it
was okay to leave out the exports. This change just restores the things
that were formerly exported.

When you install 5.0, you will get compile errors like

```
Exported variable 'Foo' has or is using name 'InternalRecord' from external module ".../node_modules/runtypes/lib/types/record" but cannot be named.
```

if you use `Record`.
  • Loading branch information
keithlayne committed Jul 16, 2020
1 parent 911af0b commit d4af163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type RecordStaticType<
? { readonly [K in keyof O]: Static<O[K]> }
: { [K in keyof O]: Static<O[K]> };

interface InternalRecord<
export interface InternalRecord<
O extends { [_: string]: Runtype },
Part extends boolean,
RO extends boolean
Expand Down Expand Up @@ -43,7 +43,7 @@ export type Partial<O extends { [_: string]: Runtype }, RO extends boolean> = In
/**
* Construct a record runtype from runtypes for its values.
*/
function InternalRecord<
export function InternalRecord<
O extends { [_: string]: Runtype },
Part extends boolean,
RO extends boolean
Expand Down

0 comments on commit d4af163

Please sign in to comment.