mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
24 lines
652 B
TypeScript
24 lines
652 B
TypeScript
|
// in cypress/support/index.d.ts
|
||
|
// load type definitions that come with Cypress module
|
||
|
/// <reference types="cypress" />
|
||
|
|
||
|
import type { EditorConfig } from './../../../types/index';
|
||
|
import type EditorJS from '../../../types/index'
|
||
|
|
||
|
declare global {
|
||
|
namespace Cypress {
|
||
|
interface Chainable<Subject = any> {
|
||
|
/**
|
||
|
* Custom command to select DOM element by data-cy attribute.
|
||
|
* @param editorConfig - config to pass to the editor
|
||
|
* @example cy.createEditor({})
|
||
|
*/
|
||
|
createEditor(editorConfig: EditorConfig): Chainable<EditorJS>
|
||
|
}
|
||
|
|
||
|
interface ApplicationWindow {
|
||
|
EditorJS: typeof EditorJS
|
||
|
}
|
||
|
}
|
||
|
}
|