AOSSIE-Org / AOSSIE-Org/SocialShareButton

[FEATURE]: feat: add TypeScript type definitions (.d.ts) for config options

未关闭
#233 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
TypeScript
星标
25
派生
64
平均合并
2 天 11 小时
30 天内合并 PR
1

描述

### Feature and its Use Cases

What change I'm going to make:
The repo is primarily TypeScript with React/Next.js wrappers, but currently doesn't ship proper .d.ts type definitions for the package's config options. I'd like to add type definitions for:

buttonStyle
theme
platforms
onShare (callback)
onCopy (callback)

Why this matters:
Without proper types, TS consumers lose autocomplete and type-checking on these props, which goes against the package being TS-first.

Plan:
I'll create the .d.ts files, ensure they're exported correctly, and test them against a sample React/Next.js consumer to confirm resolution works.

### Additional Context

no

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。