diff --git a/types/react-daum-postcode/index.d.ts b/types/react-daum-postcode/index.d.ts index d5256161f0..cd2713a459 100644 --- a/types/react-daum-postcode/index.d.ts +++ b/types/react-daum-postcode/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-daum-postcode 1.2 +// Type definitions for react-daum-postcode 1.3 // Project: https://github.com/kimminsik-bernard/react-daum-postcode // Definitions by: Sa-ryong Kang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -6,18 +6,21 @@ import { Component } from 'react'; -export interface DaumPostcodeProps { - onComplete?: any; - width?: any; - height?: any; - autoClose?: any; - autoResize?: any; - animation?: any; - style?: any; - defaultQuery?: any; - theme?: any; +export namespace DaumPostcode { + interface Props { + onComplete: any; + width?: number | string; + height?: number | string; + autoClose?: boolean; + autoResize?: boolean; + animation?: boolean; + style?: any; + defaultQuery?: string; + theme?: any; + scriptUrl?: string; + } } -export default class DaumPostcode extends Component { +export default class DaumPostcode extends Component { render(): JSX.Element; } diff --git a/types/react-daum-postcode/package.json b/types/react-daum-postcode/package.json index ea72a99f2c..54cf661ac8 100644 --- a/types/react-daum-postcode/package.json +++ b/types/react-daum-postcode/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "react-daum-postcode": "^1.2.1" + "react-daum-postcode": "^1.3.0" } } \ No newline at end of file