Skip to content

Commit

Permalink
fix types for insertPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Charry committed Aug 15, 2019
1 parent 2c1aed7 commit 36b5f05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/cache/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type Options = {
prefix?: PrefixOption,
key?: string,
container?: HTMLElement,
speedy?: boolean
speedy?: boolean,
insertPosition?: 'afterbegin' | 'beforeend'
}

let rootServerStylisCache = {}
Expand Down
5 changes: 3 additions & 2 deletions packages/sheet/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export type Options = {
nonce?: string,
key: string,
container: HTMLElement,
speedy?: boolean
speedy?: boolean,
insertPosition?: 'afterbegin' | 'beforeend'
}

function createStyleElement(options: {
Expand All @@ -66,7 +67,7 @@ export class StyleSheet {
container: HTMLElement
key: string
nonce: string | void
insertPosition: 'afterbegin' | 'beforeend' | undefined
insertPosition: 'afterbegin' | 'beforeend' | void
before: Element | null
constructor(options: Options) {
this.isSpeedy =
Expand Down

0 comments on commit 36b5f05

Please sign in to comment.