Files
smartsocket/ts/smartsocket.helpers.ts

15 lines
564 B
TypeScript
Raw Normal View History

2016-08-07 14:58:20 +02:00
import * as plugins from "./smartsocket.plugins";
2016-08-08 18:20:00 +02:00
// classes
import { Smartsocket } from "./smartsocket.classes.smartsocket";
import { SocketFunction } from "./smartsocket.classes.socketfunction";
import { SocketConnection } from "./smartsocket.classes.socketconnection";
import { SocketRole, allSocketRoles } from "./smartsocket.classes.socketrole";
2016-08-07 14:58:20 +02:00
2016-08-08 18:20:00 +02:00
// SocketRole helpers
export let findSocketRoleByString = (socketRoleNameArg: string): SocketRole => {
return allSocketRoles.find((socketRoleArg) => { return socketRoleArg.name === socketRoleNameArg })
};
2016-08-07 14:58:20 +02:00