mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-03 19:42:27 +08:00
Remove use of const enum.
This commit is contained in:
10
types/documentdb-server/index.d.ts
vendored
10
types/documentdb-server/index.d.ts
vendored
@@ -492,8 +492,9 @@ interface IRequest {
|
||||
getBody<T>(): T;
|
||||
/**
|
||||
* Gets the OperationType for the request with a pre-trigger or post-trigger.
|
||||
* Note: This will be one of 'Create', 'Replace', 'Upsert', or 'Delete'.
|
||||
*/
|
||||
getOperationType(): OperationType;
|
||||
getOperationType(): string;
|
||||
/**
|
||||
* Gets a specified request header value.
|
||||
* @param key the name of the header to retrieve
|
||||
@@ -611,13 +612,6 @@ interface IErrorCodes {
|
||||
InternalServerError: number;
|
||||
}
|
||||
|
||||
declare const enum OperationType {
|
||||
Create = "Create",
|
||||
Replace = "Replace",
|
||||
Upsert = "Upsert",
|
||||
Delete = "Delete"
|
||||
}
|
||||
|
||||
declare function getContext(): IContext;
|
||||
declare var __: I__Object;
|
||||
declare var ErrorCodes: IErrorCodes;
|
||||
Reference in New Issue
Block a user