Use type imports

This commit is contained in:
RMidhunSuresh 2021-11-10 18:51:46 +05:30
parent ef2aad8956
commit cfa7708b57
3 changed files with 10 additions and 6 deletions

View file

@ -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 {

View file

@ -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,

View file

@ -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;