diff --git a/notNeededPackages.json b/notNeededPackages.json index b655fbca02..d7590d8a16 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3576,6 +3576,12 @@ "sourceRepoURL": "https://github.com/gor181/react-chartjs-2", "asOfVersion": "2.5.7" }, + { + "libraryName": "react-daum-postcode", + "typingsPackageName": "react-daum-postcode", + "sourceRepoURL": "https://github.com/kimminsik-bernard/react-daum-postcode", + "asOfVersion": "1.6.1" + }, { "libraryName": "react-collapsible", "typingsPackageName": "react-collapsible", diff --git a/types/react-daum-postcode/index.d.ts b/types/react-daum-postcode/index.d.ts deleted file mode 100644 index 8aca77413e..0000000000 --- a/types/react-daum-postcode/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -// 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 -// TypeScript Version: 2.8 - -import { Component } from 'react'; - -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 { - render(): JSX.Element; -} diff --git a/types/react-daum-postcode/react-daum-postcode-tests.tsx b/types/react-daum-postcode/react-daum-postcode-tests.tsx deleted file mode 100644 index 799d255719..0000000000 --- a/types/react-daum-postcode/react-daum-postcode-tests.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import * as React from 'react'; -import DaumPostcode from 'react-daum-postcode'; - -class Postcode extends React.Component { - handleAddress = (data: any) => { - let fullAddress: string = data.address; - let extraAddress = ''; - - if (data.addressType === 'R') { - if (data.bname !== '') { - extraAddress += data.bname; - } - if (data.buildingName !== '') { - extraAddress += (extraAddress !== '' ? `, ${data.buildingName}` : data.buildingName); - } - fullAddress += (extraAddress !== '' ? ` (${extraAddress})` : ''); - } - - console.log(fullAddress); // e.g. '서울 성동구 왕십리로2길 20 (성수동1가)' - } - - render() { - return ( - - ); - } -} diff --git a/types/react-daum-postcode/tsconfig.json b/types/react-daum-postcode/tsconfig.json deleted file mode 100644 index 134796ae08..0000000000 --- a/types/react-daum-postcode/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "files": [ - "index.d.ts", - "react-daum-postcode-tests.tsx" - ], - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "jsx": "react", - "experimentalDecorators": true, - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - } -} \ No newline at end of file diff --git a/types/react-daum-postcode/tslint.json b/types/react-daum-postcode/tslint.json deleted file mode 100644 index 2750cc0197..0000000000 --- a/types/react-daum-postcode/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file