Skip to content

Commit

Permalink
[docs-theme] annotate type exports/imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Oct 19, 2023
1 parent c526337 commit 3f9defe
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/docs-theme/src/common/documentalistUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { IHeadingNode, IPageNode, isPageNode } from "@documentalist/client";
import { type IHeadingNode, type IPageNode, isPageNode } from "@documentalist/client";

/**
* Performs an in-order traversal of the layout tree, invoking the callback for each node.
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-theme/src/components/banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import classNames from "classnames";
import * as React from "react";

import { Classes, Intent, Props } from "@blueprintjs/core";
import { Classes, Intent, type Props } from "@blueprintjs/core";

export interface BannerProps extends Props {
children?: React.ReactNode;
Expand Down
8 changes: 4 additions & 4 deletions packages/docs-theme/src/components/documentation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
* limitations under the License.
*/

import { IHeadingNode, IPageData, IPageNode, isPageNode, ITsDocBase, linkify } from "@documentalist/client";
import { type IHeadingNode, type IPageData, type IPageNode, isPageNode, type ITsDocBase, linkify } from "@documentalist/client";
import classNames from "classnames";
import * as React from "react";

import { Classes, Drawer, FocusStyleManager, HotkeysTarget2, Props } from "@blueprintjs/core";
import { Classes, Drawer, FocusStyleManager, HotkeysTarget2, type Props } from "@blueprintjs/core";
import { Search } from "@blueprintjs/icons";

import { DocsData, DocumentationContext, DocumentationContextApi, hasTypescriptData } from "../common/context";
import { type DocsData, DocumentationContext, type DocumentationContextApi, hasTypescriptData } from "../common/context";
import { eachLayoutNode } from "../common/documentalistUtils";
import { TagRendererMap, TypescriptExample } from "../tags";
import { type TagRendererMap, TypescriptExample } from "../tags";
import { renderBlock } from "./block";
import { NavButton } from "./navButton";
import { Navigator } from "./navigator";
Expand Down
6 changes: 3 additions & 3 deletions packages/docs-theme/src/components/navMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
* limitations under the License.
*/

import { IHeadingNode, IPageNode, isPageNode } from "@documentalist/client";
import { type IHeadingNode, type IPageNode, isPageNode } from "@documentalist/client";
import classNames from "classnames";
import * as React from "react";

import { Classes, Props } from "@blueprintjs/core";
import { Classes, type Props } from "@blueprintjs/core";

import { COMPONENT_DISPLAY_NAMESPACE } from "../common";
import { NavMenuItem, NavMenuItemProps } from "./navMenuItem";
import { NavMenuItem, type NavMenuItemProps } from "./navMenuItem";

export interface NavMenuProps extends Props {
activePageId: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-theme/src/components/navigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as React from "react";

import { Classes, MenuItem } from "@blueprintjs/core";
import { CaretRight } from "@blueprintjs/icons";
import { ItemListPredicate, ItemRenderer, Omnibar } from "@blueprintjs/select";
import { type ItemListPredicate, type ItemRenderer, Omnibar } from "@blueprintjs/select";

import { eachLayoutNode } from "../common/documentalistUtils";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { isTsClass, isTsInterface, ITsDocBase } from "@documentalist/client";
import { isTsClass, isTsInterface, type ITsDocBase } from "@documentalist/client";
import * as React from "react";

import { COMPONENT_DISPLAY_NAMESPACE } from "../../common";
Expand Down
12 changes: 6 additions & 6 deletions packages/docs-theme/src/components/typescript/interfaceTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
import {
isTag,
isTsProperty,
ITsClass,
ITsInterface,
ITsMethod,
ITsProperty,
ITsSignature,
type ITsClass,
type ITsInterface,
type ITsMethod,
type ITsProperty,
type ITsSignature,
} from "@documentalist/client";
import classNames from "classnames";
import * as React from "react";

import { Classes, Intent, Props, Tag } from "@blueprintjs/core";
import { Classes, Intent, type Props, Tag } from "@blueprintjs/core";

import { COMPONENT_DISPLAY_NAMESPACE } from "../../common";
import { DocumentationContext } from "../../common/context";
Expand Down
4 changes: 2 additions & 2 deletions packages/docs-theme/src/components/typescript/methodTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

import { isTag, ITsMethod, ITsParameter, ITsSignature } from "@documentalist/client";
import { isTag, type ITsMethod, type ITsParameter, type ITsSignature } from "@documentalist/client";
import classNames from "classnames";
import * as React from "react";

import { Code, Intent, Props, Tag } from "@blueprintjs/core";
import { Code, Intent, type Props, Tag } from "@blueprintjs/core";

import { COMPONENT_DISPLAY_NAMESPACE } from "../../common";
import { DocumentationContext } from "../../common/context";
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-theme/src/tags/method.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { isTsClass, isTsMethod, ITag, ITsClass, ITypescriptPluginData } from "@documentalist/client";
import { isTsClass, isTsMethod, type ITag, type ITsClass, type ITypescriptPluginData } from "@documentalist/client";
import * as React from "react";

import type { Props } from "@blueprintjs/core";
Expand Down
2 changes: 1 addition & 1 deletion packages/docs-theme/src/tags/typescript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import { isTsClass, isTsEnum, isTsInterface, isTsTypeAlias, ITag, ITypescriptPluginData } from "@documentalist/client";
import { isTsClass, isTsEnum, isTsInterface, isTsTypeAlias, type ITag, type ITypescriptPluginData } from "@documentalist/client";
import * as React from "react";

import type { Props } from "@blueprintjs/core";
Expand Down

0 comments on commit 3f9defe

Please sign in to comment.