Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/types/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type * as CSSUtil from './css-util.js'
import type Stitches from './stitches.js'
import type { Stitches } from './stitches.js'

/** Configuration Interface */
declare namespace ConfigType {
export declare namespace ConfigType {
/** Prefix interface. */
export type Prefix<T = ''> = T extends string ? T: string

Expand Down
7 changes: 5 additions & 2 deletions packages/core/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import type Stitches from './stitches.js'

import type * as Config from './config.js'
import type * as CSSUtil from './css-util.js'
import type * as StyledComponent from './styled-component.js'
import type * as Core from './stitches.js'

export type { Property } from './css.js'
export { $$PropertyValue, $$ScaleValue, $$ThemeValue} from './css-util.js'
export type { CssComponent } from './styled-component.js'

export type CreateStitches = Config.CreateStitches
export type CSSProperties = CSSUtil.CSSProperties
export type DefaultThemeMap = Config.DefaultThemeMap
export type FontFace = CSSUtil.Native.AtRule.FontFace
export type Stitches = Core.Stitches

/** Returns a Style interface from a configuration, leveraging the given media and style map. */
export type CSS<
Expand Down
2 changes: 1 addition & 1 deletion packages/core/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface CssFunctionType<Media extends {} = {}, Theme extends {} = {}, T
}

/** Stitches interface. */
export default interface Stitches<
export interface Stitches<
Prefix extends string = '',
Media extends {} = {},
Theme extends {} = {},
Expand Down
4 changes: 2 additions & 2 deletions packages/react/types/config.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type * as CSSUtil from './css-util.js'
import type Stitches from './stitches.js'
import type { Stitches } from './stitches.js'

/** Configuration Interface */
declare namespace ConfigType {
export declare namespace ConfigType {
/** Prefix interface. */
export type Prefix<T = ''> = T extends string ? T: string

Expand Down
7 changes: 5 additions & 2 deletions packages/react/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import type Stitches from './stitches.js'

import type * as Config from './config.js'
import type * as CSSUtil from './css-util.js'
import type * as Core from './stitches.js'
import type * as StyledComponent from './styled-component.js'

export { Property } from './css.js'
export { $$PropertyValue, $$ScaleValue, $$ThemeValue } from './css-util.js'
export type { StyledComponent } from './styled-component.js'

export type CreateStitches = Config.CreateStitches
export type CSSProperties = CSSUtil.CSSProperties
export type DefaultThemeMap = Config.DefaultThemeMap
export type FontFace = CSSUtil.Native.AtRule.FontFace
export type Stitches = Core.Stitches

/** Returns a Style interface from a configuration, leveraging the given media and style map. */
export type CSS<
Expand Down
2 changes: 1 addition & 1 deletion packages/react/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface StyledFunctionType<Media extends {} = {}, Theme extends {} = {}
}

/** Stitches interface. */
export default interface Stitches<
export interface Stitches<
Prefix extends string = '',
Media extends {} = {},
Theme extends {} = {},
Expand Down