mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-15 12:12:08 +08:00
feat: init ts
This commit is contained in:
18
electronjs/controller/example.js
Normal file
18
electronjs/controller/example.js
Normal file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* example
|
||||
* @class
|
||||
*/
|
||||
class ExampleController {
|
||||
|
||||
/**
|
||||
* test
|
||||
*/
|
||||
async test () {
|
||||
return 'hello electron-egg';
|
||||
}
|
||||
}
|
||||
|
||||
ExampleController.toString = () => '[class ExampleController]';
|
||||
module.exports = ExampleController;
|
||||
Reference in New Issue
Block a user