forked from mystiq/hydrogen-web
Use type imports
This commit is contained in:
parent
ef2aad8956
commit
cfa7708b57
3 changed files with 10 additions and 6 deletions
|
@ -15,9 +15,12 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import {LogItem, LabelOrValues, FilterCreator, LogCallback} from "./LogItem";
|
||||
import {LogLevel, LogFilter, LogLevelOrNull} from "./LogFilter";
|
||||
import {Platform} from "../platform/web/Platform.js";
|
||||
import {LogItem} from "./LogItem";
|
||||
import {LogLevel, LogFilter} from "./LogFilter";
|
||||
import type {FilterCreator, LabelOrValues, LogCallback} from "./LogItem";
|
||||
import type {LogLevelOrNull} from "./LogFilter";
|
||||
// todo: should this import be here just for getting the type? should it instead be done when Platform.js --> Platform.ts?
|
||||
import type {Platform} from "../platform/web/Platform.js";
|
||||
|
||||
|
||||
export abstract class BaseLogger {
|
||||
|
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import {LogItem} from "./LogItem";
|
||||
import type {LogItem} from "./LogItem";
|
||||
|
||||
export enum LogLevel {
|
||||
All = 1,
|
||||
|
|
|
@ -15,8 +15,9 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import {BaseLogger} from "./BaseLogger";
|
||||
import {LogLevel, LogLevelOrNull, LogFilter} from "./LogFilter";
|
||||
import {LogLevel, LogFilter} from "./LogFilter";
|
||||
import type {LogLevelOrNull} from "./LogFilter";
|
||||
import type {BaseLogger} from "./BaseLogger";
|
||||
|
||||
type LogItemWithLabel = {
|
||||
l: string;
|
||||
|
|
Loading…
Reference in a new issue