Skip to content

Commit

Permalink
Merge pull request #401 from marp-team/css-nesting-type-definition
Browse files Browse the repository at this point in the history
Update type definition to add `cssNesting` constructor option
  • Loading branch information
yhatt authored Aug 31, 2024
2 parents 7e9fac4 + ec51fca commit ac160f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Fixed

- Update type definition to add `cssNesting` constructor option ([#401](https://github.com/marp-team/marpit/pull/401))

## v3.1.0 - 2024-08-30

### Added
Expand Down
13 changes: 10 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare namespace Marpit {
anchor?: boolean | AnchorCallback
container?: false | Element | Element[]
cssContainerQuery?: boolean | string | string[]
cssNesting?: boolean
headingDivider?: false | HeadingDivider | HeadingDivider[]
lang?: string
looseYAML?: boolean
Expand Down Expand Up @@ -47,15 +48,20 @@ declare namespace Marpit {
...params: P
) => void

type ThemeMetaType = {
[key: string]: StringConstructor | ArrayConstructor
}

type ThemeReservedMeta = {
theme: string
}

type ThemeMetaType = {
[key: string]: StringConstructor | ArrayConstructor
interface ThemeSetOptions {
cssNesting?: boolean
}

type ThemeOptions = {
cssNesting?: boolean
metaType?: ThemeMetaType
}

Expand Down Expand Up @@ -126,8 +132,9 @@ declare namespace Marpit {
}

export class ThemeSet {
constructor()
constructor(opts?: ThemeSetOptions)

cssNesting: boolean
default: Theme | undefined
metaType: ThemeMetaType

Expand Down

0 comments on commit ac160f6

Please sign in to comment.