Skip to content

Type definitions to provide editor support

License

Notifications You must be signed in to change notification settings

ayakashi-io/types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

types

Type definitions extracted from core to provide editor support.
All generated projects (generated with ayakashi new) install the typings automatically.
If you created a project manually you can install the types by running:

npm install --save @ayakashi/types

in the project's root folder.

File headers

In order to include the types in javascript files, the following header comments are needed:

For ayakashi.config.js

/**
* @type {import("@ayakashi/types").Config}
*/
module.exports = {
    config: {},
    //... the rest of the config
}

For scrapers

/**
 * @param {import("@ayakashi/types").IAyakashiInstance} ayakashi
 */
module.exports = async function(ayakashi, input, params) {
    //... scraper code
}

The headers are only needed if you created the files manually.
Files generated with ayakashi new will include them automatically.

About

Type definitions to provide editor support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published