feat: add types

This commit is contained in:
Qiuxia Fan
2021-12-08 20:21:08 +08:00
parent ffcdd1939a
commit a174b18c23
8 changed files with 16 additions and 12 deletions

View File

@@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable */
import axios from "axios";
const CancelToken = axios.CancelToken;

View File

@@ -141,7 +141,7 @@ class Vec3 extends Float32Array {
return this;
}
/** Copy in vector data */
copy(v: any[] | Float32Array): Vec3 {
copy(v: number[] | Float32Array): Vec3 {
this[0] = v[0];
this[1] = v[1];
this[2] = v[2];