File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * This module exports types for representing Bot API methods and types
3+ * in a structured format.
4+ *
5+ * @module
6+ */
7+
18import type { types } from './types.gen.ts'
29
310/**
@@ -8,6 +15,9 @@ export type ApiType
815 = | ApiTypeObject
916 | ApiTypeOneOf
1017
18+ /**
19+ * Bot API type represented as an object with fields.
20+ */
1121export interface ApiTypeObject {
1222 /**
1323 * Name of the type.
@@ -27,6 +37,9 @@ export interface ApiTypeObject {
2737 oneOf ?: never
2838}
2939
40+ /**
41+ * Bot API type represented as a union of other types.
42+ */
3043export interface ApiTypeOneOf {
3144 /**
3245 * Name of the type.
@@ -46,6 +59,9 @@ export interface ApiTypeOneOf {
4659 fields ?: never
4760}
4861
62+ /**
63+ * Bot API method with parameters and return type.
64+ */
4965export interface ApiMethod {
5066 /**
5167 * Name of the method.
@@ -68,6 +84,9 @@ export interface ApiMethod {
6884 returnType : ValueType
6985}
7086
87+ /**
88+ * Field of a type or parameter of a method.
89+ */
7190export interface FieldOrParam {
7291 /**
7392 * Name of the field/parameter.
Original file line number Diff line number Diff line change 1+ /**
2+ * This module exports definitions of all Bot API methods and types.
3+ *
4+ * @module
5+ */
6+
17export { methods } from './methods.gen.ts'
8+
29export { types } from './types.gen.ts'
You can’t perform that action at this time.
0 commit comments