Change how we export states enum

This commit is contained in:
u9g 2021-08-21 20:59:45 -04:00 committed by GitHub
parent 634eab0ba1
commit 07468e9049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
src/index.d.ts vendored
View file

@ -117,7 +117,7 @@ declare module 'minecraft-protocol' {
version: string
}
enum States {
enum states {
HANDSHAKING = 'handshaking',
LOGIN = 'login',
PLAY = 'play',
@ -168,7 +168,6 @@ declare module 'minecraft-protocol' {
latency: number
}
export const states: typeof States
export const supportedVersions: ['1.7', '1.8', '1.9', '1.10', '1.11.2', '1.12.2', '1.13.2', '1.14.4', '1.15.2', '1.16.5', '1.17.1']
export function createServer(options: ServerOptions): Server