Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Typing improvement on setting/getting storage

Đang mở
#316 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@atk đang làm issue này rồi.

Từ ngày 29/8/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement

So, I was using createStorage with an object interface like this:

const [appStore, setAppStore] = createStorage<{
  endpoint: string;
  query: string;
  ...
}>()

As I used the setAppStore(), and set the first parameter, I expected the keys of object to show up as options like this:

image

but it seems like the typescript didn't recognize the keys.

Is it possible this feature could be added? also I just did a little experiment on this so if it's ok, I'd be happy to help!

Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
165
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của solidjs-community/solid-primitives

Tất cả issue của solidjs-community/solid-primitives

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.