compiled-css-in-js
ts-nameof
Our great sponsors
compiled-css-in-js | ts-nameof | |
---|---|---|
1 | 1 | |
1,263 | 489 | |
- | - | |
9.5 | 0.0 | |
about 3 years ago | about 1 year ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
compiled-css-in-js
ts-nameof
-
Creating an axios service wrapper (in Vue)
// src/services/lps/SynonymGroupApiService.ts import type { SynonymGroup } from '@/shared/models/entities/Synonym'; import type { Pageable, Sort } from '@/shared/requests/Pageable'; import type { Search } from '@/shared/requests/Search'; import type { Page } from '@/shared/responses/Page'; import { ServiceCacher } from '../ServiceCacher'; import { AbstractLpsApiService } from './LpsApiService'; export interface SynonymGroupFilter extends Search, Pageable, Sort {} class SynonymGroupApiService extends AbstractLpsApiService { public constructor(lpsPortalUrl: string) { super('/synonym-groups', lpsPortalUrl); } public findAllPaged({ search }: SynonymGroupFilter = {}): Promise> { return this.http.get('', { params: { search } }) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } public findById(id: number): Promise { return this.http.get(`/${id}`) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } public create(content: SynonymGroup): Promise { return this.http.post('', content) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } public update(id: number, content: SynonymGroup): Promise { return this.http.put(`/${id}`, content) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } public delete(id: number): Promise { return this.http.delete(`/${id}`) .then(this.handleResponse.bind(this)) .catch(this.handleError.bind(this)); } } const serviceCacher: ServiceCacher = new ServiceCacher( nameof(), // https://github.com/dsherret/ts-nameof SynonymGroupApiService ); export function synonymGroupApiService(baseUrl: string): SynonymGroupApiService { return serviceCacher.instance(baseUrl); }
What are some alternatives?
babel-plugin-tsconfig-paths-module-resolver - Use tsconfig-paths in any bundler that supports a custom babel config.
ttypescript - Over TypeScript tool to use custom transformers in the tsconfig.json
tamagui - Style React fast with 100% parity on React Native, an optional UI kit, and optimizing compiler.
nornj - More exciting JS/JSX based on Template Engine, support control flow tags, custom directives, two-way binding, filters and custom operators.
atorable-loader - Webpack loader for turning files into Magnet links and adding corresponding files to output directory.
c0d3-app - C0D3 - Become a Software Engineer the Hard Way
wp-webpack-script - 💥🔥📦👩💻 An easy to use, pre configured, hackable webpack setup & development server for WordPress themes and plugins.
navita - Atomic CSS-in-JS with zero runtime
compiled - A familiar and performant compile time CSS-in-JS library for React.
panache - Write CSS as React components with Style Objects
rosebox - CSS in Typescript
candy-loader - Load css files as pure jsx components with classnames as boolean props