f7
f7 is a spreadsheet formula execution library
git clone https://git.vogt.world/f7.git
Log | Files | README.md | LICENSE.md
← All files
name: src/main/js/spreadsheet/rpcs/CreateSheetRPC.ts
-rw-r--r--
469
 1import { RPCName } from "./RPCName";
 2
 3export interface ICreateSheetRPC {
 4  type: RPCName.CREATE_COMMENT_RPC;
 5  id: string;
 6  name: string;
 7}
 8
 9export class CreateSheetRPC implements ICreateSheetRPC {
10  type: RPCName.CREATE_COMMENT_RPC = RPCName.CREATE_COMMENT_RPC;
11  id: string;
12  name: string;
13
14  constructor(id: string, name: string) {
15    this.id = id;
16    this.name = name;
17  }
18
19  static from(i: ICreateSheetRPC) {
20    return new CreateSheetRPC(i.id, i.name);
21  }
22}