-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
100 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,35 @@ | ||
import type { Marp } from '@marp-team/marp-core' | ||
import type { Marpit } from '@marp-team/marpit' | ||
import type { IMarpCLIConfig } from './config' | ||
import type { ResolvableEngine } from './engine' | ||
|
||
import { apiInterface } from './marp-cli' | ||
|
||
type Overwrite<T, U> = Omit<T, Extract<keyof T, keyof U>> & U | ||
|
||
export { ObservationHelper, waitForObservation } from './marp-cli' | ||
export { CLIError, CLIErrorCode } from './error' | ||
|
||
export const marpCli = apiInterface | ||
export default apiInterface | ||
|
||
// --- | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-interface -- Use interface instead of type for better IntelliSense | ||
export interface Config<Engine extends typeof Marpit = typeof Marp> | ||
extends Overwrite< | ||
Omit< | ||
IMarpCLIConfig, | ||
/** | ||
* This option is internal setting for collaboration with Marp team tools such as Marp for VS Code. | ||
* It is not designed for users because the result of conversion may break if set wrong base URL. | ||
*/ | ||
'baseUrl' | ||
>, | ||
{ | ||
engine?: ResolvableEngine<Engine> | ||
image?: 'png' | 'jpeg' | ||
images?: 'png' | 'jpeg' | ||
options?: ConstructorParameters<Engine>[0] | ||
} | ||
> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters