build: tsconfig 변경
- 반영된 룰에 맞게 import type 적용
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { RNG } from "./RNG";
|
||||
import type { RNG } from "./RNG";
|
||||
|
||||
import { sha512 } from 'js-sha512';
|
||||
|
||||
import { convertBytesLikeToUint8Array } from "./convertBytesLikeToUint8Array";
|
||||
import { BytesLike } from "./BytesLike";
|
||||
import type { BytesLike } from "./BytesLike";
|
||||
|
||||
const maxRngSupportBit = 53;
|
||||
const maxInt = 0x1f_ffff_ffff_ffff; // NOTE: b 0, 10000110011, 11...11
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RNG } from './RNG';
|
||||
import type { RNG } from './RNG';
|
||||
|
||||
export class RandUtil {
|
||||
constructor(protected rng: RNG) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { htmlReady } from "@util/htmlReady";
|
||||
import { unwrap } from "@util/unwrap";
|
||||
import { keyScreenMode, ScreenModeType } from "@/defs";
|
||||
import { keyScreenMode, type ScreenModeType } from "@/defs";
|
||||
|
||||
export function auto500px(targetHeight = 700): void {
|
||||
let deviceWidth = -1;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import axios from "axios";
|
||||
import { isArray } from "lodash";
|
||||
import { InvalidResponse } from '@/defs';
|
||||
import type { InvalidResponse } from '@/defs';
|
||||
|
||||
export type ValidResponse = {
|
||||
result: true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BytesLike } from "./BytesLike";
|
||||
import type { BytesLike } from "./BytesLike";
|
||||
|
||||
export function convertBytesLikeToArrayBuffer(data: BytesLike, encodeUTF8 = true): ArrayBuffer{
|
||||
if (data instanceof ArrayBuffer) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BytesLike } from "./BytesLike";
|
||||
import type { BytesLike } from "./BytesLike";
|
||||
|
||||
export function convertBytesLikeToUint8Array(data: BytesLike, encodeUTF8 = true): Uint8Array {
|
||||
if (data instanceof Uint8Array) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IDItem } from '@/defs';
|
||||
import type { IDItem } from '@/defs';
|
||||
|
||||
export function convertIDArray<T>(array: Iterable<T>): IDItem<T>[] {
|
||||
const result: IDItem<T>[] = [];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Schema, { Rule, Values } from "async-validator";
|
||||
import Schema, { type Rule, type Values } from "async-validator";
|
||||
import { isArray } from "lodash";
|
||||
import { mergeKVArray } from "@util/mergeKVArray";
|
||||
import $ from 'jquery';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Nullable } from "@util/Nullable";
|
||||
import type { Nullable } from "@util/Nullable";
|
||||
import { NotNullExpected } from "@util/NotNullExpected";
|
||||
|
||||
export function unwrap<T>(result: Nullable<T>): T {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Nullable } from "@util/Nullable";
|
||||
import type { Nullable } from "@util/Nullable";
|
||||
import { NotNullExpected } from "@util/NotNullExpected";
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Nullable } from "@util/Nullable";
|
||||
import type { Nullable } from "@util/Nullable";
|
||||
|
||||
type ErrType<T> = { new(msg?: string): T }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user