Notice: after bumping up to three 0.180.0 with @types/three 0.180.0,
Argument of type 'Group<Object3DEventMap>' is not assignable to parameter of type 'Object3D<Object3DEventMap>'.
Type 'Group<Object3DEventMap>' is missing the following properties from type 'Object3D<Object3DEventMap>': setPointerCapture, releasePointerCapture, hasPointerCapture
Currently, AFAIK, clearly, three, and @types/three doesn't have the setPointerCapture, releasePointerCapture, hasPointerCapture method / getters
The only place I found on GitHub, points out that https://github.com/pmndrs/xr/blob/456aa380206e93888cd3a5741a1534e672ae3106/packages/pointer-events/src/pointer.ts#L69-L100 declares
```js
declare module 'three' {
interface Object3D {
setPointerCapture(pointerId: number): void
releasePointerCapture(pointerId: number): void
hasPointerCapture(pointerId: number): boolean
intersectChildren?: boolean
interactableDescendants?: Array<Object3D>
/**
* @deprecated
*/
ancestorsHaveListeners?: boolean
ancestorsHavePointerListeners?: boolean
ancestorsHaveWheelListeners?: boolean
}
}
```
And in @tresjs/core v5, it uses the @pmndrs/pointer-events internally.
Somehow the Object3D from @types/three and the one augmented by @pmndrs/pointer-events are not compatible.
`new Object3D() as unknown as Object3D` works as workaround here but there should be no need to do such a thing since these two Object3D should be the same.
With no updates from `typescript`, I assume there is no breaking change or regression from `typescript` side.
70 lines
1.7 KiB
JSON
70 lines
1.7 KiB
JSON
{
|
|
"name": "@proj-airi/i18n",
|
|
"type": "module",
|
|
"private": true,
|
|
"description": "Internationalization (i18n) locales and utilities for Project AIRI",
|
|
"author": {
|
|
"name": "Moeru AI Project AIRI Team",
|
|
"email": "airi@moeru.ai",
|
|
"url": "https://github.com/moeru-ai"
|
|
},
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/moeru-ai/airi.git",
|
|
"directory": "packages/i18n"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"./locales": {
|
|
"types": "./dist/locales/index.d.mts",
|
|
"default": "./dist/locales/index.mjs"
|
|
},
|
|
"./locales/en": {
|
|
"types": "./dist/locales/en/index.d.mts",
|
|
"default": "./dist/locales/en/index.mjs"
|
|
},
|
|
"./locales/zh-Hans": {
|
|
"types": "./dist/locales/zh-Hans/index.d.mts",
|
|
"default": "./dist/locales/zh-Hans/index.mjs"
|
|
},
|
|
"./locales/es": {
|
|
"types": "./dist/locales/es/index.d.mts",
|
|
"default": "./dist/locales/es/index.mjs"
|
|
},
|
|
"./locales/ru": {
|
|
"types": "./dist/locales/ru/index.d.mts",
|
|
"default": "./dist/locales/ru/index.mjs"
|
|
},
|
|
"./locales/fr": {
|
|
"types": "./dist/locales/fr/index.d.mts",
|
|
"default": "./dist/locales/fr/index.mjs"
|
|
},
|
|
"./locales/vi": {
|
|
"types": "./dist/locales/vi/index.d.mts",
|
|
"default": "./dist/locales/vi/index.mjs"
|
|
},
|
|
"./locales/*.yaml": {
|
|
"default": "./dist/locales/*.yaml"
|
|
}
|
|
},
|
|
"main": "./dist/index.mjs",
|
|
"types": "./dist/index.d.mts",
|
|
"files": [
|
|
"README.md",
|
|
"dist",
|
|
"package.json"
|
|
],
|
|
"scripts": {
|
|
"dev": "pnpm run build",
|
|
"build": "tsdown",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"devDependencies": {
|
|
"unplugin-yaml": "^3.0.6"
|
|
}
|
|
}
|