Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client API mock sample #19

Open
4b5ent1 opened this issue Aug 16, 2018 · 0 comments
Open

client API mock sample #19

4b5ent1 opened this issue Aug 16, 2018 · 0 comments
Labels
RFC 意见功能建议稿

Comments

@4b5ent1
Copy link
Member

4b5ent1 commented Aug 16, 2018

https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#12

cdt-client.d.ts

declare namespace CDT{
    module cdtc{
        namespace API{
            
            interface process{}
            interface P extends process{}
            interface Process extends P{}
            // 实体优先用class,其余优先interface
            interface People extends P{}
            class 路人 implements People{}
            class 友邻 extends 路人{}
            class 伙伴 extends 路人{}

            interface Node{}
            class 节点 implements Node{}
            class 物理节点 extends 节点{}

            interface 信标 extends Beacon{} interface Beacon{}
            class 地理信标 implements Beacon{}
            
            interface Acti{} //Activity
            interface A状态{} //活动状态
            interface 活动 extends Acti{
                创建():Acti;
                变更(状态:A状态);
                //fork();
                归档();
                删除();
            }
            interface Event{}
            interface 事件 extends Event{
                添加():void;
            }
            interface 会话 extends Session{} interface Session{} 
            function f(): number;
        }
    }
}
@4b5ent1 4b5ent1 added the RFC 意见功能建议稿 label Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC 意见功能建议稿
Projects
None yet
Development

No branches or pull requests

1 participant