mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
Set up TypeScript for lib
Add a TypeScript build suitable for incremental migration to TypeScript to the lib package.
This commit is contained in:
1 parent
a1ee147c46
commit
90798205e0
16 files changed
+115
-151
No files matched your search
@@ -1,17 +0,0 @@
|
||||
/**
|
||||
* Library for message based communication between nodes
|
||||
* @module lib/link
|
||||
* @author Hornwitser
|
||||
*/
|
||||
"use strict";
|
||||
const link = require("./link");
|
||||
const connectors = require("./connectors");
|
||||
|
||||
module.exports = {
|
||||
...link,
|
||||
...connectors,
|
||||
|
||||
// migrate: Allow info for plugins from before link refactor to load.
|
||||
Event: class Event {},
|
||||
Request: class Request {},
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Library for message based communication between nodes
|
||||
* @module lib/link
|
||||
* @author Hornwitser
|
||||
*/
|
||||
export * from "./link"
|
||||
export * from "./connectors"
|
||||
|
||||
// migrate: Allow info for plugins from before link refactor to load.
|
||||
export class Event {}
|
||||
export class Request {}
|
||||
Reference in new issue
Block a user