diff --git a/types/nodegit/attr.d.ts b/types/nodegit/attr.d.ts index fdcf4dc56b..c7b2d3ea22 100644 --- a/types/nodegit/attr.d.ts +++ b/types/nodegit/attr.d.ts @@ -1,7 +1,7 @@ import { Repository } from './repository'; export namespace Attr { - enum STATES { + const enum STATES { UNSPECIFIED_T = 0, TRUE_T = 1, FALSE_T = 2, diff --git a/types/nodegit/blame.d.ts b/types/nodegit/blame.d.ts index c6efdc133b..684db81b6c 100644 --- a/types/nodegit/blame.d.ts +++ b/types/nodegit/blame.d.ts @@ -3,7 +3,7 @@ import { BlameOptions } from './blame-options'; import {BlameHunk} from './blame-hunk'; export namespace Blame { - enum FLAG { + const enum FLAG { NORMAL = 0, TRACK_COPIES_SAME_FILE = 1, TRACK_COPIES_SAME_COMMIT_MOVES = 2, diff --git a/types/nodegit/branch.d.ts b/types/nodegit/branch.d.ts index 0c52131a51..47bd1ec76f 100644 --- a/types/nodegit/branch.d.ts +++ b/types/nodegit/branch.d.ts @@ -4,7 +4,7 @@ import { Commit } from './commit'; import { AnnotatedCommit } from './annotated-commit'; export namespace Branch { - enum BRANCH { + const enum BRANCH { LOCAL = 1, REMOTE = 2, ALL = 3 diff --git a/types/nodegit/cert.d.ts b/types/nodegit/cert.d.ts index f910453700..fd749beba9 100644 --- a/types/nodegit/cert.d.ts +++ b/types/nodegit/cert.d.ts @@ -1,12 +1,12 @@ export namespace Cert { - enum TYPE { + const enum TYPE { NONE = 0, X509 = 1, HOSTKEY_LIBSSH2 = 2, STRARRAY = 3 } - enum SSH { + const enum SSH { MD5 = 1, SHA1 = 2 } diff --git a/types/nodegit/checkout.d.ts b/types/nodegit/checkout.d.ts index a7bc6d63fc..af5f66faf3 100644 --- a/types/nodegit/checkout.d.ts +++ b/types/nodegit/checkout.d.ts @@ -7,7 +7,7 @@ import { Commit } from './commit'; import { Index } from './index'; export namespace Checkout { - enum NOTIFY { + const enum NOTIFY { NONE = 0, CONFLICT = 1, DIRTY = 2, @@ -17,7 +17,7 @@ export namespace Checkout { ALL = 65535 } - enum STRATEGY { + const enum STRATEGY { NONE = 0, SAFE = 1, FORCE = 2, diff --git a/types/nodegit/clone.d.ts b/types/nodegit/clone.d.ts index e0b92bb9ea..c038a8e26a 100644 --- a/types/nodegit/clone.d.ts +++ b/types/nodegit/clone.d.ts @@ -2,7 +2,7 @@ import { Repository } from './repository'; import { CloneOptions } from './clone-options'; export namespace Clone { - enum LOCAL { + const enum LOCAL { AUTO = 0, LOCAL = 1, NO_LOCAL = 2, diff --git a/types/nodegit/config.d.ts b/types/nodegit/config.d.ts index ad8df1a327..ea61c52d3c 100644 --- a/types/nodegit/config.d.ts +++ b/types/nodegit/config.d.ts @@ -1,7 +1,7 @@ import { Buf } from './buf'; export namespace Config { - enum LEVEL { + const enum LEVEL { SYSTEM = 1, XDG = 2, GLOBAL = 3, diff --git a/types/nodegit/cred.d.ts b/types/nodegit/cred.d.ts index 759e43d814..9de014311b 100644 --- a/types/nodegit/cred.d.ts +++ b/types/nodegit/cred.d.ts @@ -1,5 +1,5 @@ export namespace Cred { - enum TYPE { + const enum TYPE { USERPASS_PLAINTEXT = 1, SSH_KEY = 2, SSH_CUSTOM = 4, diff --git a/types/nodegit/diff-binary.d.ts b/types/nodegit/diff-binary.d.ts index fa6643038d..d01181c92a 100644 --- a/types/nodegit/diff-binary.d.ts +++ b/types/nodegit/diff-binary.d.ts @@ -1,7 +1,7 @@ import { DiffBinaryFile } from './diff-binary-file'; export namespace DiffBinary { - enum DIFF_BINARY { + const enum DIFF_BINARY { NONE = 0, LITERAL = 1, DELTA = 2 diff --git a/types/nodegit/diff.d.ts b/types/nodegit/diff.d.ts index d675b36acf..6926527124 100644 --- a/types/nodegit/diff.d.ts +++ b/types/nodegit/diff.d.ts @@ -18,7 +18,7 @@ export interface DiffFindOptions { } export namespace Diff { - enum DELTA { + const enum DELTA { UNMODIFIED = 0, ADDED = 1, DELETED = 2, @@ -32,7 +32,7 @@ export namespace Diff { CONFLICTED = 10 } - enum FIND { + const enum FIND { BY_CONFIG = 0, RENAMES = 1, RENAMES_FROM_REWRITES = 2, @@ -51,14 +51,14 @@ export namespace Diff { REMOVE_UNMODIFIED = 65536 } - enum FLAG { + const enum FLAG { BINARY = 1, NOT_BINARY = 2, VALID_ID = 4, EXISTS = 8 } - enum FORMAT { + const enum FORMAT { PATCH = 1, PATCH_HEADER = 2, RAW = 3, @@ -66,12 +66,12 @@ export namespace Diff { NAME_STATUS = 5 } - enum FORMAT_EMAIL_FLAGS { + const enum FORMAT_EMAIL_FLAGS { FORMAT_EMAIL_NONE = 0, FORMAT_EMAIL_EXCLUDE_SUBJECT_PATCH_MARKER = 1 } - enum LINE { + const enum LINE { CONTEXT = 32, ADDITION = 43, DELETION = 45, @@ -83,7 +83,7 @@ export namespace Diff { BINARY = 66 } - enum OPTION { + const enum OPTION { NORMAL = 0, REVERSE = 1, INCLUDE_IGNORED = 2, @@ -115,7 +115,7 @@ export namespace Diff { SHOW_BINARY = 1073741824 } - enum STATS_FORMAT { + const enum STATS_FORMAT { STATS_NONE = 0, STATS_FULL = 1, STATS_SHORT = 2, diff --git a/types/nodegit/enums.d.ts b/types/nodegit/enums.d.ts index 850979ac51..4fb44850ca 100644 --- a/types/nodegit/enums.d.ts +++ b/types/nodegit/enums.d.ts @@ -1,23 +1,23 @@ export namespace Enums { - enum CVAR { + const enum CVAR { FALSE = 0, TRUE = 1, INT32 = 2, string = 3 } - enum DIRECTION { + const enum DIRECTION { FETCH = 0, PUSH = 1 } - enum FEATURE { + const enum FEATURE { THREADS = 1, HTTPS = 2, SSH = 4 } - enum IDXENTRY_EXTENDED_FLAG { + const enum IDXENTRY_EXTENDED_FLAG { IDXENTRY_INTENT_TO_ADD = 8192, IDXENTRY_SKIP_WORKTREE = 16384, IDXENTRY_EXTENDED2 = 32768, @@ -34,7 +34,7 @@ export namespace Enums { IDXENTRY_NEW_SKIP_WORKTREE = 512 } - enum INDXENTRY_FLAG { + const enum INDXENTRY_FLAG { IDXENTRY_EXTENDED = 16384, IDXENTRY_VALID = 32768 } diff --git a/types/nodegit/error.d.ts b/types/nodegit/error.d.ts index e1267c082b..c259749e8b 100644 --- a/types/nodegit/error.d.ts +++ b/types/nodegit/error.d.ts @@ -1,5 +1,5 @@ export namespace Error { - enum ERROR { + const enum ERROR { GITERR_NONE = 0, GITERR_NOMEMORY = 1, GITERR_OS = 2, @@ -33,7 +33,7 @@ export namespace Error { GITERR_FILESYSTEM = 30 } - enum CODE { + const enum CODE { OK = 0, ERROR = -1, ENOTFOUND = -3, diff --git a/types/nodegit/fetch.d.ts b/types/nodegit/fetch.d.ts index 2e71097ba3..db0980586f 100644 --- a/types/nodegit/fetch.d.ts +++ b/types/nodegit/fetch.d.ts @@ -1,7 +1,7 @@ import { FetchOptions } from './fetch-options'; export namespace Fetch { - enum PRUNE { + const enum PRUNE { GIT_FETCH_PRUNE_UNSPECIFIED = 0, GIT_FETCH_PRUNE = 1, GIT_FETCH_NO_PRUNE = 2 diff --git a/types/nodegit/filter.d.ts b/types/nodegit/filter.d.ts index da1f71c2b9..066a51183e 100644 --- a/types/nodegit/filter.d.ts +++ b/types/nodegit/filter.d.ts @@ -5,12 +5,12 @@ import { Blob } from './blob'; import { Buf } from './buf'; export namespace Filter { - enum FLAG { + const enum FLAG { DEFAULT = 0, ALLOW_UNSAFE = 1 } - enum MODE { + const enum MODE { TO_WORKTREE = 0, SMUDGE = 0, TO_ODB = 1, diff --git a/types/nodegit/hash-sig.d.ts b/types/nodegit/hash-sig.d.ts index afa9bc121c..5e9897450f 100644 --- a/types/nodegit/hash-sig.d.ts +++ b/types/nodegit/hash-sig.d.ts @@ -1,5 +1,5 @@ export namespace Hashsig { - enum OPTION { + const enum OPTION { NORMAL = 0, IGNORE_WHITESPACE = 1, SMART_WHITESPACE = 2, diff --git a/types/nodegit/index_.d.ts b/types/nodegit/index_.d.ts index 9902b53d35..6fd80f5047 100644 --- a/types/nodegit/index_.d.ts +++ b/types/nodegit/index_.d.ts @@ -5,14 +5,14 @@ import { Tree } from './tree'; import { Strarray } from './str-array'; export namespace Index { - enum ADD_OPTION { + const enum ADD_OPTION { ADD_DEFAULT = 0, ADD_FORCE = 1, ADD_DISABLE_PATHSPEC_MATCH = 2, ADD_CHECK_PATHSPEC = 4 } - enum CAP { + const enum CAP { IGNORE_CASE = 1, NO_FILEMODE = 2, NO_SYMLINKS = 4, diff --git a/types/nodegit/lib-git2.d.ts b/types/nodegit/lib-git2.d.ts index 9d7f1a5281..be5a5d1856 100644 --- a/types/nodegit/lib-git2.d.ts +++ b/types/nodegit/lib-git2.d.ts @@ -1,5 +1,5 @@ export namespace Libgit2 { - enum OPT { + const enum OPT { GET_MWINDOW_SIZE = 0, SET_MWINDOW_SIZE = 1, GET_MWINDOW_MAPPED_LIMIT = 2, diff --git a/types/nodegit/merge.d.ts b/types/nodegit/merge.d.ts index fb135e178f..737d3c5a04 100644 --- a/types/nodegit/merge.d.ts +++ b/types/nodegit/merge.d.ts @@ -10,7 +10,7 @@ import { MergeOptions } from './merge-options'; import { MergeFileInput } from './merge-file-input'; export namespace Merge { - enum ANALYSIS { + const enum ANALYSIS { NONE = 0, NORMAL = 1, UP_TO_DATE = 2, @@ -18,14 +18,14 @@ export namespace Merge { UNBORN = 8 } - enum FILE_FAVOR { + const enum FILE_FAVOR { NORMAL = 0, OURS = 1, THEIRS = 2, UNION = 3 } - enum FILE_FLAGS { + const enum FILE_FLAGS { FILE_DEFAULT = 0, FILE_STYLE_MERGE = 1, FILE_STYLE_DIFF3 = 2, @@ -37,13 +37,13 @@ export namespace Merge { FILE_DIFF_MINIMAL = 128 } - enum PREFERENCE { + const enum PREFERENCE { NONE = 0, NO_FASTFORWARD = 1, FASTFORWARD_ONLY = 2 } - enum TREE_FLAG { + const enum TREE_FLAG { TREE_FIND_RENAMES = 1 } } diff --git a/types/nodegit/odb.d.ts b/types/nodegit/odb.d.ts index f43f1673db..c0cbfd8725 100644 --- a/types/nodegit/odb.d.ts +++ b/types/nodegit/odb.d.ts @@ -2,7 +2,7 @@ import { Oid } from './oid'; import { OdbObject } from './odb-object'; export namespace Odb { - enum STREAM { + const enum STREAM { RDONLY = 2, WRONLY = 4, RW = 6 diff --git a/types/nodegit/pack-builder.d.ts b/types/nodegit/pack-builder.d.ts index 0f21f5f328..ed0fa0a2cc 100644 --- a/types/nodegit/pack-builder.d.ts +++ b/types/nodegit/pack-builder.d.ts @@ -3,7 +3,7 @@ import { Oid } from './oid'; import { Revwalk } from './rev-walk'; export namespace Packbuilder { - enum STAGE { + const enum STAGE { ADDING_OBJECTS = 0, DELTAFICATION = 1 } diff --git a/types/nodegit/path-spec.d.ts b/types/nodegit/path-spec.d.ts index d09d2812da..99435d5e0d 100644 --- a/types/nodegit/path-spec.d.ts +++ b/types/nodegit/path-spec.d.ts @@ -6,7 +6,7 @@ import { Index } from './index'; import { Strarray } from './str-array'; export namespace Pathspec { - enum FLAG { + const enum FLAG { DEFAULT = 0, IGNORE_CASE = 1, USE_CASE = 2, diff --git a/types/nodegit/rebase-operation.d.ts b/types/nodegit/rebase-operation.d.ts index a6e6e53bfa..7144ebe6a9 100644 --- a/types/nodegit/rebase-operation.d.ts +++ b/types/nodegit/rebase-operation.d.ts @@ -1,7 +1,7 @@ import { Oid } from './oid'; export namespace RebaseOperation { - enum REBASE_OPERATION { + const enum REBASE_OPERATION { PICK = 0, REWORD = 1, EDIT = 2, diff --git a/types/nodegit/reference.d.ts b/types/nodegit/reference.d.ts index e2148f6a07..4edd34d2da 100644 --- a/types/nodegit/reference.d.ts +++ b/types/nodegit/reference.d.ts @@ -3,14 +3,14 @@ import { Oid } from './oid'; import { Object } from './object'; export namespace Reference { - enum TYPE { + const enum TYPE { INVALID = 0, OID = 1, SYMBOLIC = 2, LISTALL = 3 } - enum NORMALIZE { + const enum NORMALIZE { REF_FORMAT_NORMAL = 0, REF_FORMAT_ALLOW_ONELEVEL = 1, REF_FORMAT_REFSPEC_PATTERN = 2, diff --git a/types/nodegit/remote.d.ts b/types/nodegit/remote.d.ts index 0c3923c57c..bba1f640fb 100644 --- a/types/nodegit/remote.d.ts +++ b/types/nodegit/remote.d.ts @@ -9,14 +9,14 @@ import { PushOptions } from './push-options'; import { Refspec } from './ref-spec'; export namespace Remote { - enum AUTOTAG_OPTION { + const enum AUTOTAG_OPTION { DOWNLOAD_TAGS_UNSPECIFIED = 0, DOWNLOAD_TAGS_AUTO = 1, DOWNLOAD_TAGS_NONE = 2, DOWNLOAD_TAGS_ALL = 3 } - enum COMPLETION_TYPE { + const enum COMPLETION_TYPE { COMPLETION_DOWNLOAD = 0, COMPLETION_INDEXING = 1, COMPLETION_ERROR = 2 diff --git a/types/nodegit/reset.d.ts b/types/nodegit/reset.d.ts index 8af3919ff4..25ff5ae563 100644 --- a/types/nodegit/reset.d.ts +++ b/types/nodegit/reset.d.ts @@ -5,7 +5,7 @@ import { Strarray } from './str-array'; import { CheckoutOptions } from './checkout-options'; export namespace Reset { - enum TYPE { + const enum TYPE { SOFT = 1, MIXED = 2, HARD = 3 diff --git a/types/nodegit/rev-parse.d.ts b/types/nodegit/rev-parse.d.ts index 9d0136cac6..7bdbc80676 100644 --- a/types/nodegit/rev-parse.d.ts +++ b/types/nodegit/rev-parse.d.ts @@ -3,7 +3,7 @@ import { Repository } from './repository'; import { Reference } from './reference'; export namespace Revparse { - enum MODE { + const enum MODE { SINGLE = 1, RANGE = 2, MERGE_BASE = 4 diff --git a/types/nodegit/rev-walk.d.ts b/types/nodegit/rev-walk.d.ts index ad54969164..643220b492 100644 --- a/types/nodegit/rev-walk.d.ts +++ b/types/nodegit/rev-walk.d.ts @@ -3,7 +3,7 @@ import { Oid } from './oid'; import { Commit } from './commit'; export namespace Revwalk { - enum SORT { + const enum SORT { NONE = 0, TOPOLOGICAL = 1, TIME = 2, diff --git a/types/nodegit/stash.d.ts b/types/nodegit/stash.d.ts index 5208fa7e5f..39a6893140 100644 --- a/types/nodegit/stash.d.ts +++ b/types/nodegit/stash.d.ts @@ -4,12 +4,12 @@ import { Oid } from './oid'; import { CheckoutOptions } from './checkout-options'; export namespace Stash { - enum APPLY_FLAGS { + const enum APPLY_FLAGS { APPLY_DEFAULT = 0, APPLY_REINSTATE_INDEX = 1 } - enum APPLY_PROGRESS { + const enum APPLY_PROGRESS { NONE = 0, LOADING_STASH = 1, ANALYZE_INDEX = 2, @@ -20,7 +20,7 @@ export namespace Stash { DONE = 7 } - enum FLAGS { + const enum FLAGS { DEFAULT = 0, KEEP_INDEX = 1, INCLUDE_UNTRACKED = 2, diff --git a/types/nodegit/status.d.ts b/types/nodegit/status.d.ts index 92bbe564f3..49ad0fd142 100644 --- a/types/nodegit/status.d.ts +++ b/types/nodegit/status.d.ts @@ -4,7 +4,7 @@ import { StatusEntry } from './status-entry'; import { StatusOptions } from './status-options'; export namespace Status { - enum STATUS { + const enum STATUS { CURRENT = 0, INDEX_NEW = 1, INDEX_MODIFIED = 2, @@ -21,7 +21,7 @@ export namespace Status { CONFLICTED = 32768 } - enum OPT { + const enum OPT { INCLUDE_UNTRACKED = 1, INCLUDE_IGNORED = 2, INCLUDE_UNMODIFIED = 4, @@ -40,7 +40,7 @@ export namespace Status { INCLUDE_UNREADABLE_AS_UNTRACKED = 32768 } - enum SHOW { + const enum SHOW { INDEX_AND_WORKDIR = 0, INDEX_ONLY = 1, WORKDIR_ONLY = 2 diff --git a/types/nodegit/submodule.d.ts b/types/nodegit/submodule.d.ts index b3c1576db4..fd64a1c8ac 100644 --- a/types/nodegit/submodule.d.ts +++ b/types/nodegit/submodule.d.ts @@ -4,7 +4,7 @@ import { Oid } from './oid'; import { SubmoduleUpdateOptions } from './submodule-update-options'; export namespace Submodule { - enum IGNORE { + const enum IGNORE { UNSPECIFIED = -1, NONE = 1, UNTRACKED = 2, @@ -12,13 +12,13 @@ export namespace Submodule { ALL = 4 } - enum RECURSE { + const enum RECURSE { NO = 0, YES = 1, ONDEMAND = 2 } - enum STATUS { + const enum STATUS { IN_HEAD = 1, IN_INDEX = 2, IN_CONFIG = 4, @@ -35,7 +35,7 @@ export namespace Submodule { WD_UNTRACKED = 8192 } - enum UPDATE { + const enum UPDATE { CHECKOUT = 1, REBASE = 2, MERGE = 3, diff --git a/types/nodegit/transport.d.ts b/types/nodegit/transport.d.ts index 9d1a82b061..189985c469 100644 --- a/types/nodegit/transport.d.ts +++ b/types/nodegit/transport.d.ts @@ -2,7 +2,7 @@ import { Remote } from './remote'; import { Strarray } from './str-array'; export namespace Transport { - enum FLAGS { + const enum FLAGS { NONE = 0 } } diff --git a/types/nodegit/tree-entry.d.ts b/types/nodegit/tree-entry.d.ts index 8d1b5d553e..844f5da90c 100644 --- a/types/nodegit/tree-entry.d.ts +++ b/types/nodegit/tree-entry.d.ts @@ -3,7 +3,7 @@ import { Oid } from './oid'; import { Blob } from './blob'; export namespace TreeEntry { - enum FILEMODE { + const enum FILEMODE { UNREADABLE = 0, TREE = 16384, BLOB = 33188, diff --git a/types/nodegit/tree.d.ts b/types/nodegit/tree.d.ts index b9ac62f9e2..c20037cb0a 100644 --- a/types/nodegit/tree.d.ts +++ b/types/nodegit/tree.d.ts @@ -6,7 +6,7 @@ import { Treebuilder } from './tree-builder'; import { DiffFile } from './diff-file'; export namespace Tree { - enum WALK_MODE { + const enum WALK_MODE { WALK_PRE = 0, WALK_POST = 1 }