@bygnet/types 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/content/ad.d.ts +4 -0
- package/dist/content/comment.d.ts +6 -0
- package/dist/content/image.d.ts +10 -0
- package/dist/content/post.d.ts +10 -0
- package/dist/content/shop.d.ts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/unions/create.d.ts +1 -0
- package/dist/web/page.d.ts +6 -0
- package/package.json +9 -2
- package/src/index.ts +1 -0
- package/.idea/copilot.data.migration.ask2agent.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -38
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.prettierrc +0 -9
- package/bun.lock +0 -15
- package/byg-types.iml +0 -8
- package/src/content/comment.ts +0 -6
- package/src/content/image.ts +0 -10
- package/src/content/post.ts +0 -10
- package/src/content/shop.ts +0 -7
- package/src/unions/create.ts +0 -1
- package/src/web/page.ts +0 -6
- package/tsconfig.json +0 -10
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Byg Platform Types
|
|
2
|
+
TypeScript types for Byg Platform.
|
|
3
|
+
> Learn more about Byg: [here](https://github.com/BygNet).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
Byg Platform recommends using [Bun](https://bun.sh/) to manage your dependencies.
|
|
7
|
+
|
|
8
|
+
```shell
|
|
9
|
+
bun add @bygnet/types
|
|
10
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CreateType = 'post' | 'image';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bygnet/types",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Byg
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Byg Platform's types for posts, images, and more, for Byg devs and the community.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"social-network",
|
|
7
7
|
"typescript",
|
|
@@ -14,14 +14,21 @@
|
|
|
14
14
|
"email": "ash@a35.dev",
|
|
15
15
|
"url": "https://a35.dev"
|
|
16
16
|
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/BygNet/Types.git"
|
|
20
|
+
},
|
|
17
21
|
"type": "module",
|
|
18
22
|
"main": "src/index.ts",
|
|
23
|
+
|
|
24
|
+
"files": ["dist"],
|
|
19
25
|
"types": "dist/index.d.ts",
|
|
20
26
|
"exports": {
|
|
21
27
|
".": {
|
|
22
28
|
"types": "./dist/index.d.ts"
|
|
23
29
|
}
|
|
24
30
|
},
|
|
31
|
+
|
|
25
32
|
"scripts": {
|
|
26
33
|
"build": "tsc",
|
|
27
34
|
"format": "prettier --write src/"
|
package/src/index.ts
CHANGED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
|
5
|
-
<option name="myValues">
|
|
6
|
-
<value>
|
|
7
|
-
<list size="7">
|
|
8
|
-
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
|
9
|
-
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
|
10
|
-
<item index="2" class="java.lang.String" itemvalue="comment" />
|
|
11
|
-
<item index="3" class="java.lang.String" itemvalue="noscript" />
|
|
12
|
-
<item index="4" class="java.lang.String" itemvalue="embed" />
|
|
13
|
-
<item index="5" class="java.lang.String" itemvalue="script" />
|
|
14
|
-
<item index="6" class="java.lang.String" itemvalue="iconify-icon" />
|
|
15
|
-
</list>
|
|
16
|
-
</value>
|
|
17
|
-
</option>
|
|
18
|
-
<option name="myCustomValuesEnabled" value="true" />
|
|
19
|
-
</inspection_tool>
|
|
20
|
-
<inspection_tool class="PyPep8Inspection" enabled="true" level="INFORMATION" enabled_by_default="true">
|
|
21
|
-
<option name="ignoredErrors">
|
|
22
|
-
<list>
|
|
23
|
-
<option value="E302" />
|
|
24
|
-
</list>
|
|
25
|
-
</option>
|
|
26
|
-
</inspection_tool>
|
|
27
|
-
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
|
28
|
-
<option name="ignoredErrors">
|
|
29
|
-
<list>
|
|
30
|
-
<option value="N802" />
|
|
31
|
-
<option value="N806" />
|
|
32
|
-
<option value="N812" />
|
|
33
|
-
<option value="N803" />
|
|
34
|
-
</list>
|
|
35
|
-
</option>
|
|
36
|
-
</inspection_tool>
|
|
37
|
-
</profile>
|
|
38
|
-
</component>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
package/.idea/vcs.xml
DELETED
package/.prettierrc
DELETED
package/bun.lock
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lockfileVersion": 1,
|
|
3
|
-
"configVersion": 1,
|
|
4
|
-
"workspaces": {
|
|
5
|
-
"": {
|
|
6
|
-
"name": "@bygnet/types",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"prettier": "^3.8.1",
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
"packages": {
|
|
13
|
-
"prettier": ["prettier@3.8.1", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg=="],
|
|
14
|
-
}
|
|
15
|
-
}
|
package/byg-types.iml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="GENERAL_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|
package/src/content/comment.ts
DELETED
package/src/content/image.ts
DELETED
package/src/content/post.ts
DELETED
package/src/content/shop.ts
DELETED
package/src/unions/create.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type CreateType = 'post' | 'image'
|
package/src/web/page.ts
DELETED