Skip to content

Commit

Permalink
Add local css namespace types
Browse files Browse the repository at this point in the history
  • Loading branch information
demiazz committed May 5, 2017
1 parent 1d75af2 commit 351d67e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/css/add-class.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import type { CSSClass } from "../types";
import type { CSSClass } from "./types";

import hasClass from "./has-class";

Expand Down
2 changes: 1 addition & 1 deletion src/css/has-class.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import type { CSSClass } from "../types";
import type { CSSClass } from "./types";

function hasClass(element: Element, cssClass: CSSClass): boolean {
return element.classList.contains(cssClass);
Expand Down
2 changes: 1 addition & 1 deletion src/css/remove-class.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import type { CSSClass } from "../types";
import type { CSSClass } from "./types";

import hasClass from "./has-class";

Expand Down
2 changes: 1 addition & 1 deletion src/css/toggle-class.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @flow */

import type { CSSClass } from "../types";
import type { CSSClass } from "./types";

import addClass from "./add-class";
import hasClass from "./has-class";
Expand Down
3 changes: 3 additions & 0 deletions src/css/types.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* @flow */

export type CSSClass = string;
2 changes: 0 additions & 2 deletions src/types.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* @flow */

export type CSSClass = string;

export type Dataset = { [key: string]: string };

export type DelegatedEvent = Event & { delegateTarget: EventTarget };
Expand Down

0 comments on commit 351d67e

Please sign in to comment.