Skip to content

Commit

Permalink
fix(Type Guards): Expose TypeMaps in packaged module
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Jul 24, 2019
1 parent 080c008 commit cdb61e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 5 additions & 6 deletions util/guards.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import {
Article,
Entity,
InlineContent,
ListItem,
Node,
Paragraph,
Entity
Paragraph
} from '../types'

import { TypeMap, TypeMapGeneric } from './type-map'
import {
InlineNodesWithType,
inlineContentTypes,
blockContentTypes,
creativeWorkTypes
creativeWorkTypes,
inlineContentTypes,
InlineNodesWithType
} from './type-maps'

type ExtractGeneric<Type> = Type extends TypeMap<infer X>
Expand Down
2 changes: 2 additions & 0 deletions util/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Node } from '../types'
import { isEntity } from './guards'
export * from './guards'
export * from './type-map'
export * from './type-maps'

/**
* Get the type of a node
Expand Down

0 comments on commit cdb61e4

Please sign in to comment.