Skip to content

Commit ae95cbe

Browse files
committed
Fixing just.config.cts and api-extractor.json
1 parent 3d32206 commit ae95cbe

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

libraries/gameplay-utilities/api-report/gameplay-utilities.api.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@ export interface EventPromise<T> extends Promise<T | undefined> {
1515
then<TFulfill = T | undefined, TReject = never>(onfulfilled?: ((value: T | undefined) => TFulfill | PromiseLike<TFulfill>) | null, onrejected?: ((reason: unknown) => TReject | PromiseLike<TReject>) | null): Promise<TFulfill | TReject>;
1616
}
1717

18-
// @public
19-
export type FirstArg<T> = T extends (arg: infer U) => void ? U : never;
20-
2118
// @public
2219
export type MinecraftAfterEventSignals = (typeof world.afterEvents)[keyof typeof world.afterEvents] | (typeof system.afterEvents)[keyof typeof system.afterEvents];
2320

2421
// @public
25-
export function nextEvent<U>(signal: MinecraftAfterEventSignals, filter?: U): EventPromise<FirstArg<FirstArg<typeof signal.subscribe>>>;
22+
export function nextEvent<U>(signal: MinecraftAfterEventSignals, filter?: U): EventPromise<Parameters<Parameters<typeof signal.subscribe>[0]>[0]>;
2623

2724
// (No @packageDocumentation comment for this package)
2825

libraries/math/api-extractor.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
*/
44
{
55
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
6-
"extends": "@minecraft/api-extractor-base/api-extractor-base.json"
6+
"extends": "@minecraft/api-extractor-base/api-extractor-base.json",
7+
"mainEntryPointFilePath": "<projectFolder>/temp/types/src/index.d.ts"
78
}

libraries/math/api-report/math.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export class Vector3Builder implements Vector3 {
147147
// @public
148148
export class Vector3Utils {
149149
static add(v1: Vector3, v2: Partial<Vector3>): Vector3;
150+
static ceil(v: Vector3): Vector3;
150151
static clamp(v: Vector3, limits?: {
151152
min?: Partial<Vector3>;
152153
max?: Partial<Vector3>;

libraries/math/just.config.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ task('typescript', tscTask());
2424
task('api-extractor-local', apiExtractorTask('./api-extractor.json', isOnlyBuild /* localBuild */));
2525
task('bundle', () => {
2626
execSync(
27-
'npx esbuild ./lib/index.js --bundle --outfile=dist/minecraft-math.js --format=esm --sourcemap --external:@minecraft/server'
27+
'npx esbuild ./lib/src/index.js --bundle --outfile=dist/minecraft-math.js --format=esm --sourcemap --external:@minecraft/server',
2828
);
2929
// Copy over type definitions and rename
3030
const officialTypes = JSON.parse(readFileSync('./package.json', 'utf-8'))['types'];

0 commit comments

Comments
 (0)