모든 일에 의문을 제기하고 그 의문을 해결하기 위해 지식을 구하고 공부
declare와 .d.ts 파일 본문
https://it-eldorado.tistory.com/127
[TypeScript] module, import, export, declare 개념 정리
👉 모듈(Module)이란? import 또는 export 가 있는 파일은 모듈(Module)로 취급이 된다. 즉, 외부에서는 직접적으로 모듈을 불러오지 않는 이상 그 모듈의 데이터를 사용할 수 없다. import 는 모듈에서 데
it-eldorado.tistory.com
/*
일부 Typescript을 지원하지않는 라이브러리를 포크 없이 최대한 빠르게 사용하기 위해 사용되는 라이브러리 타입 정의 파일입니다.
빠른 개발을 위해 사용하는 API에 대해서만 타입 처리 해주셔도 됩니다.
*/
type selectAudioOutputParams = {}
declare module 'react-native-switch-audio-output' {
export const selectAudioOutput: (params: selectAudioOutputParams) => {}
export const AUDIO_SPEAKER: 'speaker'
export const AUDIO_HEADPHONE: 'headphone;'
}
declare module '@env' {
export const AUTH_API_URL: string
export const CONNECTS_API_URL: string
export const QNA_API_URL: string
export const CALL_SERVER_URL: string
export const IAMPORT_CODE: string
export const MEDIA_URL: string
export const SEARCH_API_URL: string
export const KAKAO_API_KEY: string
export const FACEBOOK_APP_ID: string
export const AUTH_WEB_URL: string
}
declare module '*.svg' {
const content: string
export default content
}