0.1.9 • Published 3 years ago

@til-log.lab/tilog-api v0.1.9

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

TILog Openapi -Typescript-axios

TILog-v2 Openapi Typescript-axios
개발자를 위한 블로그 플랫폼 TILog를 위한 Openapi Typescript-axios스펙

Install

yarn add @til-log.lab/tilog-api
npm install @til-log.lab/tilog-api

How To use

import * tilogApi from '@til-log.lab/tilog-api'

Update Logs

Migration 0.0.1 ~ 0.0.14 -> 0.1.0 Guide

Change Error Interface

const COUNTRY = {
  ko: 'ko',
  en: 'en',
} as const;

type ExceptionMessageInterface = Partial<
  Record<typeof COUNTRY[keyof typeof COUNTRY], string>
>;

Checking ErrorType

const isExceptionMessageInterface = (
  object: any,
): object is ExceptionMessageInterface => {
  if (!object) return false;
  if (!(object instanceof Object)) return false;

  return Object.keys(object).some((key) => key in COUNTRY);
};

0.1.4 -> Webpack supported

Built with JavaScript ES6, commonjs Module

0.1.9

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago