Bump artifact dependencies if CODEQL_ACTION_ARTIFACT_V2_UPGRADE enabled (#2482)
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com> Co-authored-by: Henry Mercer <henrymercer@github.com>
This commit is contained in:
parent
cf5b0a9041
commit
a196a714b8
5388 changed files with 2176737 additions and 71701 deletions
50
node_modules/@protobuf-ts/plugin/build/code-gen/enum-generator.d.ts
generated
vendored
Normal file
50
node_modules/@protobuf-ts/plugin/build/code-gen/enum-generator.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
import * as ts from "typescript";
|
||||
import { DescriptorRegistry, EnumDescriptorProto, SymbolTable, TypescriptFile, TypeScriptImports } from "@protobuf-ts/plugin-framework";
|
||||
import { CommentGenerator } from "./comment-generator";
|
||||
import { Interpreter } from "../interpreter";
|
||||
import { GeneratorBase } from "./generator-base";
|
||||
export declare class EnumGenerator extends GeneratorBase {
|
||||
private readonly options;
|
||||
constructor(symbols: SymbolTable, registry: DescriptorRegistry, imports: TypeScriptImports, comments: CommentGenerator, interpreter: Interpreter, options: {});
|
||||
/**
|
||||
* For the following .proto:
|
||||
*
|
||||
* ```proto
|
||||
* enum MyEnum {
|
||||
* ANY = 0;
|
||||
* YES = 1;
|
||||
* NO = 2;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* We generate the following enum:
|
||||
*
|
||||
* ```typescript
|
||||
* enum MyEnum {
|
||||
* ANY = 0,
|
||||
* YES = 1,
|
||||
* NO = 2
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* We drop a shared prefix, for example:
|
||||
*
|
||||
* ```proto
|
||||
* enum MyEnum {
|
||||
* MY_ENUM_FOO = 0;
|
||||
* MY_ENUM_BAR = 1;
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* Becomes:
|
||||
*
|
||||
* ```typescript
|
||||
* enum MyEnum {
|
||||
* FOO = 0,
|
||||
* BAR = 1,
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
*/
|
||||
generateEnum(source: TypescriptFile, descriptor: EnumDescriptorProto): ts.EnumDeclaration;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue