Skip to content

add type completion to the project - however these types do not resolve well #24

@FrederickEngelhardt

Description

@FrederickEngelhardt

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-switch-selector@2.3.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-switch-selector/package.json b/node_modules/react-native-switch-selector/package.json
index 20f887c..ac8edfe 100644
--- a/node_modules/react-native-switch-selector/package.json
+++ b/node_modules/react-native-switch-selector/package.json
@@ -3,6 +3,7 @@
     "version": "2.3.0",
     "description": "Switch Selector to React Native.",
     "main": "index.js",
+    "types": "./types/index.d.ts",
     "scripts": {
         "lint": "./node_modules/.bin/eslint index.js index.d.ts",
         "test": "echo \"Error: no test specified\" && exit 1"

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions