Updated typing export/import;
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "discord-audio-stream",
|
"name": "discord-audio-stream",
|
||||||
"version": "0.6.18",
|
"version": "0.6.19",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "discord-audio-stream",
|
"name": "discord-audio-stream",
|
||||||
"version": "0.6.18",
|
"version": "0.6.19",
|
||||||
"license": "LGPL-2.1-only",
|
"license": "LGPL-2.1-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/voice": "^0.19.0",
|
"@discordjs/voice": "^0.19.0",
|
||||||
|
|||||||
+4
-4
@@ -1,23 +1,23 @@
|
|||||||
{
|
{
|
||||||
"name": "discord-audio-stream",
|
"name": "discord-audio-stream",
|
||||||
"version": "0.6.18",
|
"version": "0.6.19",
|
||||||
"license": "LGPL-2.1-only",
|
"license": "LGPL-2.1-only",
|
||||||
"description": "NodeJS library to make stream any audio on discord easier.",
|
"description": "NodeJS library to make stream any audio on discord easier.",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"require": {
|
"require": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/types.d.ts",
|
||||||
"default": "./dist/index.js"
|
"default": "./dist/index.js"
|
||||||
},
|
},
|
||||||
"import": {
|
"import": {
|
||||||
"types": "./dist/index.d.mts",
|
"types": "./dist/types.d.mts",
|
||||||
"default": "./dist/index.mjs"
|
"default": "./dist/index.mjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/types.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
|||||||
Generated
+1058
-1061
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
import type { AudioPlayer, AudioResource, VoiceConnection } from '@discordjs/voice';
|
import type { AudioPlayer, AudioResource, VoiceConnection } from '@discordjs/voice';
|
||||||
import { createAudioPlayer, createAudioResource, joinVoiceChannel } from '@discordjs/voice';
|
import { createAudioPlayer, createAudioResource, joinVoiceChannel } from '@discordjs/voice';
|
||||||
import { join } from 'node:path';
|
import { join } from 'node:path';
|
||||||
import {VoiceAudioDataModel, VoiceConnectionDataModel} from "./types";
|
import type { VoiceAudioDataModel, VoiceConnectionDataModel } from './types';
|
||||||
|
|
||||||
export default class AudioManager {
|
export default class AudioManager {
|
||||||
public VoiceConnection?: VoiceConnection;
|
public VoiceConnection?: VoiceConnection;
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
export { default as AudioManager } from './audio-manager';
|
export { default as AudioManager } from './audio-manager';
|
||||||
export type {VoiceAudioDataModel, VoiceConnectionDataModel} from "./types";
|
export type { VoiceAudioDataModel, VoiceConnectionDataModel } from './types';
|
||||||
|
|||||||
Reference in New Issue
Block a user