diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..e8c83bd --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,15 @@ +# These are supported funding model platforms + +github: [angular-package] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +patreon: angularpackage # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: [ + 'https://checkout.revolut.com/pay/048b10a3-0e10-42c8-a917-e3e9cb4c8e29', + 'https://donate.stripe.com/dR614hfDZcJE3wAcMM' +] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/README.md b/README.md index fa012fd..d5ea2c8 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,37 @@ ## typescript-package/core -Core package. - [![npm version][typescript-package-npm-badge-svg]][typescript-package-npm-badge] [![GitHub issues][typescript-package-badge-issues]][typescript-package-issues] [![GitHub license][typescript-package-badge-license]][typescript-package-license] +A TypeScript library with features used across other `typescript-package` libraries. +
## Table of contents -* [Installation](#installation) -* [Api](#api) -* [Git](#git) - * [Commit](#commit) - * [Versioning](#versioning) -* [License](#license) +- [Installation](#installation) +- [Api](#api) +- [Contributing](#contributing) +- [Support](#support) +- [Code of Conduct](#code-of-conduct) +- [Git](#git) + - [Commit](#commit) + - [Versioning](#versioning) +- [License](#license) ## Installation ```bash -npm install @typescript-package/core +npm install @typescript-package/core --save-peer ``` ## Api @@ -37,10 +39,30 @@ npm install @typescript-package/core ```typescript import { resultCallback, - typeOf + typeOf, + Value } from '@typescript-package/core'; ``` +## Contributing + +Your contributions are valued! If you'd like to contribute, please feel free to submit a pull request. Help is always appreciated. + +## Support + +If you find this package useful and would like to support its and general development, you can contribute through one of the following payment methods. Your support helps maintain the packages and continue adding new. + +Support via: + +- [Stripe](https://donate.stripe.com/dR614hfDZcJE3wAcMM) +- [Revolut](https://checkout.revolut.com/pay/048b10a3-0e10-42c8-a917-e3e9cb4c8e29) + +Thanks for your support! + +## Code of Conduct + +By participating in this project, you agree to follow **[Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/)**. + ## GIT ### Commit diff --git a/package-lock.json b/package-lock.json index a6a3453..8853dca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@testing-package/core", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@testing-package/core", - "version": "1.0.0", + "version": "1.1.0", "funding": [ { "type": "individual", diff --git a/package.json b/package.json index 3d7be48..3e62232 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "@typescript-package/core", - "version": "1.0.0", + "version": "1.1.0", "author": "wwwdev.io ", - "description": "Core package.", + "description": "A TypeScript library with features used across other `typescript-package` libraries.", "license": "MIT", "publishConfig": { "access": "public", diff --git a/src/lib/index.ts b/src/lib/index.ts index f4b5f6d..49af3eb 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,3 +1,4 @@ // Function. export { resultCallback } from './result-callback.func'; export { typeOf } from './type-of.func'; +export { Value } from './value.class'; \ No newline at end of file diff --git a/src/lib/value.class.ts b/src/lib/value.class.ts new file mode 100644 index 0000000..eaa09f4 --- /dev/null +++ b/src/lib/value.class.ts @@ -0,0 +1,34 @@ +/** + * @description + * @export + * @abstract + * @class Value + * @template Type + */ +export abstract class Value { + /** + * @description Returns the privately stored value of generic type variable `Type`. + * @public + * @readonly + * @type {Type} + */ + public get value() { + return this.#value; + } + + + /** + * @description Privately stored value of generic type variable `Type`. + * @type {Type} + */ + #value: Type; + + /** + * Creates an instance of `Value`. + * @constructor + * @param {Type} value + */ + constructor(value: Type) { + this.#value = value; + } +} \ No newline at end of file diff --git a/ts-package-barcode-logo-512.png b/ts-package-barcode-logo-512.png deleted file mode 100644 index 9705d19..0000000 Binary files a/ts-package-barcode-logo-512.png and /dev/null differ