@types/josa
TypeScript icon, indicating that this package has built-in type declarations

3.0.5 • Public • Published

Installation

npm install --save @types/josa

Summary

This package contains type definitions for josa (https://github.com/kimdhoe/josa).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/josa.

index.d.ts

export type Topic = "은" | "는";
export type Subject = "이" | "가";
export type Objective = "을" | "를";
export type Conjunction = "와" | "과";
export type Means = "으로" | "로";
export type Josa = Topic | Subject | Objective | Conjunction | Means;

/** 조사 플레이스홀더(ex. #{은})가 포함된 문자열을 입력받아 완성된 문자열을 반환합니다. */
export function josa(sentence: string): string;

/** 명사에 맞는 조사를 찾아주는 함수를 반환합니다. 예를 들면, 임의의 명사에 대해 _을_과 를 중 하나를 선택하는 함수가 필요할 때 사용할 수 있습니다. */
export function getJosaPicker(josa: Topic): (noun: string) => Topic;
export function getJosaPicker(josa: Subject): (noun: string) => Subject;
export function getJosaPicker(josa: Objective): (noun: string) => Objective;
export function getJosaPicker(josa: Conjunction): (noun: string) => Conjunction;
export function getJosaPicker(josa: Means): (noun: string) => Means;

/** 명사에 조사를 붙이는 함수를 반환합니다. */
export function makeJosaify(josa: Josa): (noun: string) => string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Vichyssoise.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/josa

Weekly Downloads

1,083

Version

3.0.5

License

MIT

Unpacked Size

4.78 kB

Total Files

5

Last publish

Collaborators

  • types