forked from Rosetta/landing
Redesign landing and generate Proto docs
This commit is contained in:
42
src/types/proto.ts
Normal file
42
src/types/proto.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
export interface ProtoField {
|
||||
id: number;
|
||||
name: string;
|
||||
type: string;
|
||||
optional: boolean;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface ProtoPacket {
|
||||
name: string;
|
||||
id: number;
|
||||
description: string;
|
||||
fields: ProtoField[];
|
||||
}
|
||||
|
||||
export interface ProtoType {
|
||||
name: string;
|
||||
description: string;
|
||||
fields: ProtoField[];
|
||||
}
|
||||
|
||||
export interface ProtoEnumValue {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface ProtoEnum {
|
||||
name: string;
|
||||
type: string;
|
||||
description: string;
|
||||
values: ProtoEnumValue[];
|
||||
}
|
||||
|
||||
export interface ProtoLayer {
|
||||
version: number;
|
||||
description: string;
|
||||
source: string;
|
||||
enums: ProtoEnum[];
|
||||
types: ProtoType[];
|
||||
packets: ProtoPacket[];
|
||||
}
|
||||
Reference in New Issue
Block a user