1.0.0-beta8.2 • Published 2 years ago
@ayakashi/types v1.0.0-beta8.2
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.
1.0.0-beta8.2
2 years ago
1.0.0-beta7.1
4 years ago
1.0.0-beta7
4 years ago
1.0.0-beta6.3
4 years ago
1.0.0-beta6.1
4 years ago
1.0.0-beta6
5 years ago
1.0.0-beta5.4
5 years ago
1.0.0-beta5.2
5 years ago
1.0.0-beta5
5 years ago
1.0.0-beta4.3
5 years ago
1.0.0-beta4.2
5 years ago
1.0.0-beta4
5 years ago
1.0.0-beta3.3
5 years ago
1.0.0-beta3.0.1
5 years ago
1.0.0-beta3
5 years ago
1.0.0-beta2.2
5 years ago
1.0.0-beta2.1
5 years ago
1.0.0-beta2
5 years ago
1.0.0-beta1.5
5 years ago
1.0.0-beta1.3
5 years ago
1.0.0-beta1
5 years ago