Initial commit
This commit is contained in:
43
code/templates/class-template.js
Normal file
43
code/templates/class-template.js
Normal file
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Class Template
|
||||
*
|
||||
* @class ClassName
|
||||
* @description Description of what this class does
|
||||
*/
|
||||
export class ClassName {
|
||||
/**
|
||||
* Create a new instance
|
||||
* @param {type} param - Description
|
||||
*/
|
||||
constructor(param) {
|
||||
this.param = param;
|
||||
// TODO: Initialize properties
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
* @param {type} arg - Description
|
||||
* @returns {type} Description
|
||||
*/
|
||||
methodName(arg) {
|
||||
// TODO: Implement method logic
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Static method example
|
||||
* @param {type} arg - Description
|
||||
* @returns {type} Description
|
||||
*/
|
||||
static staticMethod(arg) {
|
||||
// TODO: Implement static method
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
// Alternative export:
|
||||
// export default ClassName;
|
||||
|
||||
// Usage example:
|
||||
// import { ClassName } from './class-template.js';
|
||||
// const instance = new ClassName(param);
|
||||
Reference in New Issue
Block a user